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
c54f2912
Commit
c54f2912
authored
Mar 12, 2019
by
ijin08
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed default variables: s -> sm, m -> md, l -> lg
parent
51c06a8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
42 deletions
+42
-42
packages/grafana-ui/src/themes/_variables.scss.tmpl.ts
+12
-12
packages/grafana-ui/src/themes/default.ts
+15
-15
packages/grafana-ui/src/types/theme.ts
+15
-15
No files found.
packages/grafana-ui/src/themes/_variables.scss.tmpl.ts
View file @
c54f2912
...
@@ -18,9 +18,9 @@ $enable-hover-media-query: false !default;
...
@@ -18,9 +18,9 @@ $enable-hover-media-query: false !default;
// variables. Mostly focused on spacing.
// variables. Mostly focused on spacing.
$space-xs:
${
theme
.
spacing
.
xs
}
!default;
$space-xs:
${
theme
.
spacing
.
xs
}
!default;
$space-sm:
${
theme
.
spacing
.
s
}
!default;
$space-sm:
${
theme
.
spacing
.
s
m
}
!default;
$space-md:
${
theme
.
spacing
.
m
}
!default;
$space-md:
${
theme
.
spacing
.
m
d
}
!default;
$space-lg:
${
theme
.
spacing
.
l
}
!default;
$space-lg:
${
theme
.
spacing
.
l
g
}
!default;
$space-xl:
${
theme
.
spacing
.
xl
}
!default;
$space-xl:
${
theme
.
spacing
.
xl
}
!default;
$spacer:
${
theme
.
spacing
.
d
}
!default;
$spacer:
${
theme
.
spacing
.
d
}
!default;
$spacer-x: $spacer !default;
$spacer-x: $spacer !default;
...
@@ -51,7 +51,7 @@ $spacers: (
...
@@ -51,7 +51,7 @@ $spacers: (
),
),
),
),
) !default;
) !default;
$border-width:
${
theme
.
border
.
width
.
s
}
!default;
$border-width:
${
theme
.
border
.
width
.
s
m
}
!default;
// Grid breakpoints
// Grid breakpoints
//
//
...
@@ -60,9 +60,9 @@ $border-width: ${theme.border.width.s} !default;
...
@@ -60,9 +60,9 @@ $border-width: ${theme.border.width.s} !default;
$grid-breakpoints: (
$grid-breakpoints: (
xs:
${
theme
.
breakpoints
.
xs
}
,
xs:
${
theme
.
breakpoints
.
xs
}
,
sm:
${
theme
.
breakpoints
.
s
}
,
sm:
${
theme
.
breakpoints
.
s
m
}
,
md:
${
theme
.
breakpoints
.
m
}
,
md:
${
theme
.
breakpoints
.
m
d
}
,
lg:
${
theme
.
breakpoints
.
l
}
,
lg:
${
theme
.
breakpoints
.
l
g
}
,
xl:
${
theme
.
breakpoints
.
xl
}
,
xl:
${
theme
.
breakpoints
.
xl
}
,
) !default;
) !default;
...
@@ -96,12 +96,12 @@ $font-family-base: $font-family-sans-serif !default;
...
@@ -96,12 +96,12 @@ $font-family-base: $font-family-sans-serif !default;
$font-size-root:
${
theme
.
typography
.
size
.
root
}
!default;
$font-size-root:
${
theme
.
typography
.
size
.
root
}
!default;
$font-size-base:
${
theme
.
typography
.
size
.
base
}
!default;
$font-size-base:
${
theme
.
typography
.
size
.
base
}
!default;
$font-size-lg:
${
theme
.
typography
.
size
.
l
}
!default;
$font-size-lg:
${
theme
.
typography
.
size
.
l
g
}
!default;
$font-size-md:
${
theme
.
typography
.
size
.
m
}
!default;
$font-size-md:
${
theme
.
typography
.
size
.
m
d
}
!default;
$font-size-sm:
${
theme
.
typography
.
size
.
s
}
!default;
$font-size-sm:
${
theme
.
typography
.
size
.
s
m
}
!default;
$font-size-xs:
${
theme
.
typography
.
size
.
xs
}
!default;
$font-size-xs:
${
theme
.
typography
.
size
.
xs
}
!default;
$line-height-base:
${
theme
.
typography
.
lineHeight
.
l
}
!default;
$line-height-base:
${
theme
.
typography
.
lineHeight
.
l
g
}
!default;
$font-weight-semi-bold:
${
theme
.
typography
.
weight
.
semibold
}
;
$font-weight-semi-bold:
${
theme
.
typography
.
weight
.
semibold
}
;
$font-size-h1:
${
theme
.
typography
.
heading
.
h1
}
!default;
$font-size-h1:
${
theme
.
typography
.
heading
.
h1
}
!default;
...
@@ -114,7 +114,7 @@ $font-size-h6: ${theme.typography.heading.h6} !default;
...
@@ -114,7 +114,7 @@ $font-size-h6: ${theme.typography.heading.h6} !default;
$headings-margin-bottom: ($spacer / 2) !default;
$headings-margin-bottom: ($spacer / 2) !default;
$headings-font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$headings-font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$headings-font-weight:
${
theme
.
typography
.
weight
.
normal
}
!default;
$headings-font-weight:
${
theme
.
typography
.
weight
.
normal
}
!default;
$headings-line-height:
${
theme
.
typography
.
lineHeight
.
s
}
!default;
$headings-line-height:
${
theme
.
typography
.
lineHeight
.
s
m
}
!default;
$hr-border-width: $border-width !default;
$hr-border-width: $border-width !default;
$dt-font-weight: bold !default;
$dt-font-weight: bold !default;
...
...
packages/grafana-ui/src/themes/default.ts
View file @
c54f2912
...
@@ -11,9 +11,9 @@ const theme: GrafanaThemeCommons = {
...
@@ -11,9 +11,9 @@ const theme: GrafanaThemeCommons = {
root
:
'14px'
,
root
:
'14px'
,
base
:
'13px'
,
base
:
'13px'
,
xs
:
'10px'
,
xs
:
'10px'
,
s
:
'12px'
,
s
m
:
'12px'
,
m
:
'14px'
,
m
d
:
'14px'
,
l
:
'18px'
,
l
g
:
'18px'
,
},
},
heading
:
{
heading
:
{
h1
:
'28px'
,
h1
:
'28px'
,
...
@@ -30,35 +30,35 @@ const theme: GrafanaThemeCommons = {
...
@@ -30,35 +30,35 @@ const theme: GrafanaThemeCommons = {
},
},
lineHeight
:
{
lineHeight
:
{
xs
:
1
,
xs
:
1
,
s
:
1.1
,
s
m
:
1.1
,
m
:
4
/
3
,
m
d
:
4
/
3
,
l
:
1.5
,
l
g
:
1.5
,
},
},
},
},
breakpoints
:
{
breakpoints
:
{
xs
:
'0'
,
xs
:
'0'
,
s
:
'544px'
,
s
m
:
'544px'
,
m
:
'768px'
,
m
d
:
'768px'
,
l
:
'992px'
,
l
g
:
'992px'
,
xl
:
'1200px'
,
xl
:
'1200px'
,
},
},
spacing
:
{
spacing
:
{
d
:
'14px'
,
d
:
'14px'
,
xs
:
'4px'
,
xs
:
'4px'
,
s
:
'8px'
,
s
m
:
'8px'
,
m
:
'16px'
,
m
d
:
'16px'
,
l
:
'24px'
,
l
g
:
'24px'
,
xl
:
'32px'
,
xl
:
'32px'
,
gutter
:
'30px'
,
gutter
:
'30px'
,
},
},
border
:
{
border
:
{
radius
:
{
radius
:
{
xs
:
'2px'
,
xs
:
'2px'
,
s
:
'3px'
,
s
m
:
'3px'
,
m
:
'5px'
,
m
d
:
'5px'
,
},
},
width
:
{
width
:
{
s
:
'1px'
,
s
m
:
'1px'
,
},
},
},
},
};
};
...
...
packages/grafana-ui/src/types/theme.ts
View file @
c54f2912
...
@@ -8,9 +8,9 @@ export interface GrafanaThemeCommons {
...
@@ -8,9 +8,9 @@ export interface GrafanaThemeCommons {
// TODO: not sure if should be a part of theme
// TODO: not sure if should be a part of theme
breakpoints
:
{
breakpoints
:
{
xs
:
string
;
xs
:
string
;
s
:
string
;
s
m
:
string
;
m
:
string
;
m
d
:
string
;
l
:
string
;
l
g
:
string
;
xl
:
string
;
xl
:
string
;
};
};
typography
:
{
typography
:
{
...
@@ -22,9 +22,9 @@ export interface GrafanaThemeCommons {
...
@@ -22,9 +22,9 @@ export interface GrafanaThemeCommons {
root
:
string
;
root
:
string
;
base
:
string
;
base
:
string
;
xs
:
string
;
xs
:
string
;
s
:
string
;
s
m
:
string
;
m
:
string
;
m
d
:
string
;
l
:
string
;
l
g
:
string
;
};
};
weight
:
{
weight
:
{
light
:
number
;
light
:
number
;
...
@@ -33,9 +33,9 @@ export interface GrafanaThemeCommons {
...
@@ -33,9 +33,9 @@ export interface GrafanaThemeCommons {
};
};
lineHeight
:
{
lineHeight
:
{
xs
:
number
;
//1
xs
:
number
;
//1
s
:
number
;
//1.1
s
m
:
number
;
//1.1
m
:
number
;
// 4/3
m
d
:
number
;
// 4/3
l
:
number
;
// 1.5
l
g
:
number
;
// 1.5
};
};
// TODO: Refactor to use size instead of custom defs
// TODO: Refactor to use size instead of custom defs
heading
:
{
heading
:
{
...
@@ -50,20 +50,20 @@ export interface GrafanaThemeCommons {
...
@@ -50,20 +50,20 @@ export interface GrafanaThemeCommons {
spacing
:
{
spacing
:
{
d
:
string
;
d
:
string
;
xs
:
string
;
xs
:
string
;
s
:
string
;
s
m
:
string
;
m
:
string
;
m
d
:
string
;
l
:
string
;
l
g
:
string
;
xl
:
string
;
xl
:
string
;
gutter
:
string
;
gutter
:
string
;
};
};
border
:
{
border
:
{
radius
:
{
radius
:
{
xs
:
string
;
xs
:
string
;
s
:
string
;
s
m
:
string
;
m
:
string
;
m
d
:
string
;
};
};
width
:
{
width
:
{
s
:
string
;
s
m
:
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