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
05d5e796
Commit
05d5e796
authored
Feb 22, 2019
by
ijin08
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed color in color variables names
parent
7be18e1a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
50 deletions
+54
-50
packages/grafana-ui/src/themes/_variables.dark.scss.tmpl.ts
+10
-10
packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts
+10
-10
packages/grafana-ui/src/themes/dark.ts
+10
-10
packages/grafana-ui/src/themes/light.ts
+10
-10
packages/grafana-ui/src/types/theme.ts
+14
-10
No files found.
packages/grafana-ui/src/themes/_variables.dark.scss.tmpl.ts
View file @
05d5e796
...
...
@@ -76,12 +76,12 @@ $critical: ${theme.colors.critical};
$body-bg:
${
theme
.
colors
.
bodyBg
}
;
$page-bg:
${
theme
.
colors
.
pageBg
}
;
$body-color:
${
theme
.
colors
.
body
Color
}
;
$text-color:
${
theme
.
colors
.
text
Color
}
;
$text-color-strong:
${
theme
.
colors
.
text
Color
Strong
}
;
$text-color-weak:
${
theme
.
colors
.
text
Color
Weak
}
;
$text-color-faint:
${
theme
.
colors
.
text
Color
Faint
}
;
$text-color-emphasis:
${
theme
.
colors
.
text
Color
Emphasis
}
;
$body-color:
${
theme
.
colors
.
body
}
;
$text-color:
${
theme
.
colors
.
text
}
;
$text-color-strong:
${
theme
.
colors
.
textStrong
}
;
$text-color-weak:
${
theme
.
colors
.
textWeak
}
;
$text-color-faint:
${
theme
.
colors
.
textFaint
}
;
$text-color-emphasis:
${
theme
.
colors
.
textEmphasis
}
;
$text-shadow-faint: 1px 1px 4px rgb(45, 45, 45);
$textShadow: none;
...
...
@@ -99,10 +99,10 @@ $edit-gradient: linear-gradient(180deg, $dark-2 50%, $input-black);
// Links
// -------------------------
$link-color:
${
theme
.
colors
.
link
Color
}
;
$link-color-disabled:
${
theme
.
colors
.
link
Color
Disabled
}
;
$link-hover-color:
${
theme
.
colors
.
link
Color
Hover
}
;
$external-link-color:
${
theme
.
colors
.
link
Color
External
}
;
$link-color:
${
theme
.
colors
.
link
}
;
$link-color-disabled:
${
theme
.
colors
.
linkDisabled
}
;
$link-hover-color:
${
theme
.
colors
.
linkHover
}
;
$external-link-color:
${
theme
.
colors
.
linkExternal
}
;
// Typography
// -------------------------
...
...
packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts
View file @
05d5e796
...
...
@@ -68,12 +68,12 @@ $critical: ${theme.colors.critical};
$body-bg:
${
theme
.
colors
.
bodyBg
}
;
$page-bg:
${
theme
.
colors
.
pageBg
}
;
$body-color:
${
theme
.
colors
.
body
Color
}
;
$text-color:
${
theme
.
colors
.
text
Color
}
;
$text-color-strong:
${
theme
.
colors
.
text
Color
Strong
}
;
$text-color-weak:
${
theme
.
colors
.
text
Color
Weak
}
;
$text-color-faint:
${
theme
.
colors
.
text
Color
Faint
}
;
$text-color-emphasis:
${
theme
.
colors
.
text
Color
Emphasis
}
;
$body-color:
${
theme
.
colors
.
body
}
;
$text-color:
${
theme
.
colors
.
text
}
;
$text-color-strong:
${
theme
.
colors
.
textStrong
}
;
$text-color-weak:
${
theme
.
colors
.
textWeak
}
;
$text-color-faint:
${
theme
.
colors
.
textFaint
}
;
$text-color-emphasis:
${
theme
.
colors
.
textEmphasis
}
;
$text-shadow-faint: none;
...
...
@@ -85,10 +85,10 @@ $edit-gradient: linear-gradient(-60deg, $gray-7, #f5f6f9 70%, $gray-7 98%);
// Links
// -------------------------
$link-color:
${
theme
.
colors
.
link
Color
}
;
$link-color-disabled:
${
theme
.
colors
.
link
Color
Disabled
}
;
$link-hover-color:
${
theme
.
colors
.
link
Color
Hover
}
;
$external-link-color:
${
theme
.
colors
.
link
Color
External
}
;
$link-color:
${
theme
.
colors
.
link
}
;
$link-color-disabled:
${
theme
.
colors
.
linkDisabled
}
;
$link-hover-color:
${
theme
.
colors
.
linkHover
}
;
$external-link-color:
${
theme
.
colors
.
linkExternal
}
;
// Typography
// -------------------------
...
...
packages/grafana-ui/src/themes/dark.ts
View file @
05d5e796
...
...
@@ -60,16 +60,16 @@ const darkTheme: GrafanaTheme = {
critical
:
basicColors
.
redBase
,
bodyBg
:
basicColors
.
dark2
,
pageBg
:
basicColors
.
dark2
,
body
Color
:
basicColors
.
gray4
,
text
Color
:
basicColors
.
gray4
,
text
Color
Strong
:
basicColors
.
white
,
text
Color
Weak
:
basicColors
.
gray2
,
text
Color
Emphasis
:
basicColors
.
gray5
,
text
Color
Faint
:
basicColors
.
dark5
,
link
Color
:
new
tinycolor
(
basicColors
.
white
).
darken
(
11
).
toString
(),
link
Color
Disabled
:
new
tinycolor
(
basicColors
.
white
).
darken
(
11
).
toString
(),
link
Color
Hover
:
basicColors
.
white
,
link
Color
External
:
basicColors
.
blue
,
body
:
basicColors
.
gray4
,
text
:
basicColors
.
gray4
,
textStrong
:
basicColors
.
white
,
textWeak
:
basicColors
.
gray2
,
textEmphasis
:
basicColors
.
gray5
,
textFaint
:
basicColors
.
dark5
,
link
:
new
tinycolor
(
basicColors
.
white
).
darken
(
11
).
toString
(),
linkDisabled
:
new
tinycolor
(
basicColors
.
white
).
darken
(
11
).
toString
(),
linkHover
:
basicColors
.
white
,
linkExternal
:
basicColors
.
blue
,
headingColor
:
new
tinycolor
(
basicColors
.
white
).
darken
(
11
).
toString
(),
},
background
:
{
...
...
packages/grafana-ui/src/themes/light.ts
View file @
05d5e796
...
...
@@ -61,16 +61,16 @@ const lightTheme: GrafanaTheme = {
critical
:
basicColors
.
redShade
,
bodyBg
:
basicColors
.
gray7
,
pageBg
:
basicColors
.
gray7
,
body
Color
:
basicColors
.
gray1
,
text
Color
:
basicColors
.
gray1
,
text
Color
Strong
:
basicColors
.
dark2
,
text
Color
Weak
:
basicColors
.
gray2
,
text
Color
Emphasis
:
basicColors
.
gray5
,
text
Color
Faint
:
basicColors
.
dark4
,
link
Color
:
basicColors
.
gray1
,
link
Color
Disabled
:
new
tinycolor
(
basicColors
.
gray1
).
lighten
(
30
).
toString
(),
link
Color
Hover
:
new
tinycolor
(
basicColors
.
gray1
).
darken
(
20
).
toString
(),
link
Color
External
:
basicColors
.
blueLight
,
body
:
basicColors
.
gray1
,
text
:
basicColors
.
gray1
,
textStrong
:
basicColors
.
dark2
,
textWeak
:
basicColors
.
gray2
,
textEmphasis
:
basicColors
.
gray5
,
textFaint
:
basicColors
.
dark4
,
link
:
basicColors
.
gray1
,
linkDisabled
:
new
tinycolor
(
basicColors
.
gray1
).
lighten
(
30
).
toString
(),
linkHover
:
new
tinycolor
(
basicColors
.
gray1
).
darken
(
20
).
toString
(),
linkExternal
:
basicColors
.
blueLight
,
headingColor
:
basicColors
.
gray1
,
},
background
:
{
...
...
packages/grafana-ui/src/types/theme.ts
View file @
05d5e796
...
...
@@ -123,19 +123,23 @@ export interface GrafanaTheme extends GrafanaThemeCommons {
warn
:
string
;
critical
:
string
;
// Link colors
link
:
string
;
linkDisabled
:
string
;
linkHover
:
string
;
linkExternal
:
string
;
// Text colors
body
:
string
;
text
:
string
;
textStrong
:
string
;
textWeak
:
string
;
textFaint
:
string
;
textEmphasis
:
string
;
// TODO: move to background section
bodyBg
:
string
;
pageBg
:
string
;
bodyColor
:
string
;
textColor
:
string
;
textColorStrong
:
string
;
textColorWeak
:
string
;
textColorFaint
:
string
;
textColorEmphasis
:
string
;
linkColor
:
string
;
linkColorDisabled
:
string
;
linkColorHover
:
string
;
linkColorExternal
:
string
;
headingColor
:
string
;
};
}
...
...
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