Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7be18e1a
Commit
7be18e1a
authored
Feb 21, 2019
by
ijin08
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed some more color variables to use variables
parent
72e269c8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
101 additions
and
89 deletions
+101
-89
packages/grafana-ui/src/themes/_variables.dark.scss.tmpl.ts
+23
-23
packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts
+23
-23
packages/grafana-ui/src/themes/dark.ts
+4
-0
packages/grafana-ui/src/themes/light.ts
+6
-2
packages/grafana-ui/src/types/theme.ts
+4
-0
public/sass/_variables.dark.generated.scss
+19
-19
public/sass/_variables.light.generated.scss
+22
-22
No files found.
packages/grafana-ui/src/themes/_variables.dark.scss.tmpl.ts
View file @
7be18e1a
...
...
@@ -54,34 +54,34 @@ $orange: ${theme.colors.orange};
$purple:
${
theme
.
colors
.
purple
}
;
$variable:
${
theme
.
colors
.
variable
}
;
$brand-primary: $
orange
;
$brand-success: $
green-base
;
$brand-warning: $
brand-primary
;
$brand-danger: $
red-base
;
$brand-primary:
$
{
theme
.
colors
.
brandPrimary
}
;
$brand-success:
$
{
theme
.
colors
.
brandSuccess
}
;
$brand-warning:
$
{
theme
.
colors
.
brandWarning
}
;
$brand-danger:
$
{
theme
.
colors
.
brandDanger
}
;
$query-red: $
red-base
;
$query-green:
#74e680
;
$query-purple:
#fe85fc
;
$query-
keyword: #66d9ef
;
$query-
orange: $orange
;
$query-red:
$
{
theme
.
colors
.
queryRed
}
;
$query-green:
${
theme
.
colors
.
queryGreen
}
;
$query-purple:
${
theme
.
colors
.
queryPurple
}
;
$query-
orange:
${
theme
.
colors
.
orange
}
;
$query-
keyword:
${
theme
.
colors
.
queryKeyword
}
;
// Status colors
// -------------------------
$online: $
green-base
;
$warn:
#f79520
;
$critical: $
red-base
;
$online:
$
{
theme
.
colors
.
online
}
;
$warn:
${
theme
.
colors
.
warn
}
;
$critical:
$
{
theme
.
colors
.
critical
}
;
// Scaffolding
// -------------------------
$body-bg:
${
theme
.
colors
.
bodyBg
}
;
$page-bg:
${
theme
.
colors
.
pageBg
}
;
$body-color: $
gray-4
;
$text-color: $
gray-4
;
$text-color-strong: $
white
;
$text-color-weak: $
gray-2
;
$text-color-faint: $
dark-10
;
$text-color-emphasis: $
gray-5
;
$body-color:
$
{
theme
.
colors
.
bodyColor
}
;
$text-color:
$
{
theme
.
colors
.
textColor
}
;
$text-color-strong:
$
{
theme
.
colors
.
textColorStrong
}
;
$text-color-weak:
$
{
theme
.
colors
.
textColorWeak
}
;
$text-color-faint:
$
{
theme
.
colors
.
textColorFaint
}
;
$text-color-emphasis:
$
{
theme
.
colors
.
textColorEmphasis
}
;
$text-shadow-faint: 1px 1px 4px rgb(45, 45, 45);
$textShadow: none;
...
...
@@ -99,14 +99,14 @@ $edit-gradient: linear-gradient(180deg, $dark-2 50%, $input-black);
// Links
// -------------------------
$link-color:
darken($white, 11%)
;
$link-color-disabled:
darken($link-color, 30%)
;
$link-hover-color: $
white
;
$external-link-color: $
blue-light
;
$link-color:
${
theme
.
colors
.
linkColor
}
;
$link-color-disabled:
${
theme
.
colors
.
linkColorDisabled
}
;
$link-hover-color:
$
{
theme
.
colors
.
linkColorHover
}
;
$external-link-color:
$
{
theme
.
colors
.
linkColorExternal
}
;
// Typography
// -------------------------
$headings-color:
darken($white, 11%)
;
$headings-color:
${
theme
.
colors
.
headingColor
}
;
$abbr-border-color: $gray-2 !default;
$text-muted: $text-color-weak;
...
...
packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts
View file @
7be18e1a
...
...
@@ -46,34 +46,34 @@ $orange: ${theme.colors.orange};
$purple:
${
theme
.
colors
.
purple
}
;
$variable:
${
theme
.
colors
.
variable
}
;
$brand-primary: $
orange
;
$brand-success: $
green-base
;
$brand-warning: $
orange
;
$brand-danger: $
red-base
;
$brand-primary:
$
{
theme
.
colors
.
brandPrimary
}
;
$brand-success:
$
{
theme
.
colors
.
brandSuccess
}
;
$brand-warning:
$
{
theme
.
colors
.
brandWarning
}
;
$brand-danger:
$
{
theme
.
colors
.
brandDanger
}
;
$query-red: $
red-base
;
$query-green: $
green-base
;
$query-purple: $
purple
;
$query-orange: $
orange
;
$query-keyword: $
blue-base
;
$query-red:
$
{
theme
.
colors
.
queryRed
}
;
$query-green:
$
{
theme
.
colors
.
queryGreen
}
;
$query-purple:
$
{
theme
.
colors
.
queryPurple
}
;
$query-orange:
$
{
theme
.
colors
.
orange
}
;
$query-keyword:
$
{
theme
.
colors
.
queryKeyword
}
;
// Status colors
// -------------------------
$online: $
green-shade
;
$warn:
#f79520
;
$critical: $
red-shade
;
$online:
$
{
theme
.
colors
.
online
}
;
$warn:
${
theme
.
colors
.
warn
}
;
$critical:
$
{
theme
.
colors
.
critical
}
;
// Scaffolding
// -------------------------
$body-bg:
${
theme
.
colors
.
bodyBg
}
;
$page-bg:
${
theme
.
colors
.
pageBg
}
;
$body-color: $
gray-1
;
$text-color: $
gray-1
;
$text-color-strong: $
dark-1
;
$text-color-weak: $
gray-2
;
$text-color-faint: $
gray-4
;
$text-color-emphasis: $
dark-2
;
$body-color:
$
{
theme
.
colors
.
bodyColor
}
;
$text-color:
$
{
theme
.
colors
.
textColor
}
;
$text-color-strong:
$
{
theme
.
colors
.
textColorStrong
}
;
$text-color-weak:
$
{
theme
.
colors
.
textColorWeak
}
;
$text-color-faint:
$
{
theme
.
colors
.
textColorFaint
}
;
$text-color-emphasis:
$
{
theme
.
colors
.
textColorEmphasis
}
;
$text-shadow-faint: none;
...
...
@@ -85,14 +85,14 @@ $edit-gradient: linear-gradient(-60deg, $gray-7, #f5f6f9 70%, $gray-7 98%);
// Links
// -------------------------
$link-color: $
gray-1
;
$link-color-disabled:
lighten($link-color, 30%)
;
$link-hover-color:
darken($link-color, 20%)
;
$external-link-color: $
blue-shade
;
$link-color:
$
{
theme
.
colors
.
linkColor
}
;
$link-color-disabled:
${
theme
.
colors
.
linkColorDisabled
}
;
$link-hover-color:
${
theme
.
colors
.
linkColorHover
}
;
$external-link-color:
$
{
theme
.
colors
.
linkColorExternal
}
;
// Typography
// -------------------------
$headings-color: $
text-color
;
$headings-color:
$
{
theme
.
colors
.
headingColor
}
;
$abbr-border-color: $gray-2 !default;
$text-muted: $text-color-weak;
...
...
packages/grafana-ui/src/themes/dark.ts
View file @
7be18e1a
...
...
@@ -46,6 +46,10 @@ const darkTheme: GrafanaTheme = {
colors
:
{
...
basicColors
,
inputBlack
:
'#09090b'
,
brandPrimary
:
basicColors
.
orange
,
brandSuccess
:
basicColors
.
greenBase
,
brandWarning
:
basicColors
.
orange
,
brandDanger
:
basicColors
.
redBase
,
queryRed
:
basicColors
.
redBase
,
queryGreen
:
'#74e680'
,
queryPurple
:
'#fe85fc'
,
...
...
packages/grafana-ui/src/themes/light.ts
View file @
7be18e1a
...
...
@@ -47,10 +47,14 @@ const lightTheme: GrafanaTheme = {
...
basicColors
,
variable
:
basicColors
.
blue
,
inputBlack
:
'#09090b'
,
queryRed
:
basicColors
.
red
,
brandPrimary
:
basicColors
.
orange
,
brandSuccess
:
basicColors
.
greenBase
,
brandWarning
:
basicColors
.
orange
,
brandDanger
:
basicColors
.
redBase
,
queryRed
:
basicColors
.
redBase
,
queryGreen
:
basicColors
.
greenBase
,
queryPurple
:
basicColors
.
purple
,
queryKeyword
:
basicColors
.
blue
,
queryKeyword
:
basicColors
.
blue
Base
,
queryOrange
:
basicColors
.
orange
,
online
:
basicColors
.
greenShade
,
warn
:
'#f79520'
,
...
...
packages/grafana-ui/src/types/theme.ts
View file @
7be18e1a
...
...
@@ -113,6 +113,10 @@ export interface GrafanaTheme extends GrafanaThemeCommons {
queryPurple
:
string
;
queryKeyword
:
string
;
queryOrange
:
string
;
brandPrimary
:
string
;
brandSuccess
:
string
;
brandWarning
:
string
;
brandDanger
:
string
;
// Status colors
online
:
string
;
...
...
public/sass/_variables.dark.generated.scss
View file @
7be18e1a
...
...
@@ -57,34 +57,34 @@ $orange: #eb7b18;
$purple
:
#9933cc
;
$variable
:
#32d1df
;
$brand-primary
:
$orange
;
$brand-success
:
$green-base
;
$brand-warning
:
$brand-primary
;
$brand-danger
:
$red-base
;
$brand-primary
:
#eb7b18
;
$brand-success
:
#299c46
;
$brand-warning
:
#eb7b18
;
$brand-danger
:
#e02f44
;
$query-red
:
$red-base
;
$query-red
:
#e02f44
;
$query-green
:
#74e680
;
$query-purple
:
#fe85fc
;
$query-orange
:
#eb7b18
;
$query-keyword
:
#66d9ef
;
$query-orange
:
$orange
;
// Status colors
// -------------------------
$online
:
$green-base
;
$online
:
#299c46
;
$warn
:
#f79520
;
$critical
:
$red-base
;
$critical
:
#e02f44
;
// Scaffolding
// -------------------------
$body-bg
:
#161719
;
$page-bg
:
#161719
;
$body-color
:
$gray-4
;
$text-color
:
$gray-4
;
$text-color-strong
:
$white
;
$text-color-weak
:
$gray-2
;
$text-color-faint
:
$dark-10
;
$text-color-emphasis
:
$gray-5
;
$body-color
:
#d8d9da
;
$text-color
:
#d8d9da
;
$text-color-strong
:
#ffffff
;
$text-color-weak
:
#8e8e8e
;
$text-color-faint
:
#222426
;
$text-color-emphasis
:
#ececec
;
$text-shadow-faint
:
1px
1px
4px
rgb
(
45
,
45
,
45
);
$textShadow
:
none
;
...
...
@@ -102,14 +102,14 @@ $edit-gradient: linear-gradient(180deg, $dark-2 50%, $input-black);
// Links
// -------------------------
$link-color
:
darken
(
$white
,
11%
)
;
$link-color-disabled
:
darken
(
$link-color
,
30%
)
;
$link-hover-color
:
$white
;
$external-link-color
:
$blue-light
;
$link-color
:
#e3e3e3
;
$link-color-disabled
:
#e3e3e3
;
$link-hover-color
:
#ffffff
;
$external-link-color
:
#33b5e5
;
// Typography
// -------------------------
$headings-color
:
darken
(
$white
,
11%
)
;
$headings-color
:
#e3e3e3
;
$abbr-border-color
:
$gray-2
!
default
;
$text-muted
:
$text-color-weak
;
...
...
public/sass/_variables.light.generated.scss
View file @
7be18e1a
...
...
@@ -49,34 +49,34 @@ $orange: #ff7941;
$purple
:
#9954bb
;
$variable
:
#0083b3
;
$brand-primary
:
$orange
;
$brand-success
:
$green-base
;
$brand-warning
:
$orange
;
$brand-danger
:
$red-base
;
$brand-primary
:
#ff7941
;
$brand-success
:
#3eb15b
;
$brand-warning
:
#ff7941
;
$brand-danger
:
#e02f44
;
$query-red
:
$red-base
;
$query-green
:
$green-base
;
$query-purple
:
$purple
;
$query-orange
:
$orange
;
$query-keyword
:
$blue-base
;
$query-red
:
#e02f44
;
$query-green
:
#3eb15b
;
$query-purple
:
#9954bb
;
$query-orange
:
#ff7941
;
$query-keyword
:
#3274d9
;
// Status colors
// -------------------------
$online
:
$green-shade
;
$online
:
#369b4f
;
$warn
:
#f79520
;
$critical
:
$red-shade
;
$critical
:
#c4162a
;
// Scaffolding
// -------------------------
$body-bg
:
#f7f8fa
;
$page-bg
:
#f7f8fa
;
$body-color
:
$gray-1
;
$text-color
:
$gray-1
;
$text-color-strong
:
$dark-1
;
$text-color-weak
:
$gray-2
;
$text-color-faint
:
$gray-4
;
$text-color-emphasis
:
$dark-2
;
$body-color
:
#52545c
;
$text-color
:
#52545c
;
$text-color-strong
:
#41444b
;
$text-color-weak
:
#767980
;
$text-color-faint
:
#35373f
;
$text-color-emphasis
:
#dde4ed
;
$text-shadow-faint
:
none
;
...
...
@@ -88,14 +88,14 @@ $edit-gradient: linear-gradient(-60deg, $gray-7, #f5f6f9 70%, $gray-7 98%);
// Links
// -------------------------
$link-color
:
$gray-1
;
$link-color-disabled
:
lighten
(
$link-color
,
30%
)
;
$link-hover-color
:
darken
(
$link-color
,
20%
)
;
$external-link-color
:
$blue-shade
;
$link-color
:
#52545c
;
$link-color-disabled
:
#9ea0a9
;
$link-hover-color
:
#222326
;
$external-link-color
:
#5794f2
;
// Typography
// -------------------------
$headings-color
:
$text-color
;
$headings-color
:
#52545c
;
$abbr-border-color
:
$gray-2
!
default
;
$text-muted
:
$text-color-weak
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment