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
3e5016c2
Unverified
Commit
3e5016c2
authored
Mar 12, 2019
by
Torkel Ödegaard
Committed by
GitHub
Mar 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15941 from grafana/renamed-defaults-size
Renamed default.ts variables
parents
f4770660
c54f2912
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 @
3e5016c2
...
...
@@ -19,9 +19,9 @@ $enable-hover-media-query: false !default;
$space-xxs:
${
theme
.
spacing
.
xxs
}
!default;
$space-xs:
${
theme
.
spacing
.
xs
}
!default;
$space-sm:
${
theme
.
spacing
.
s
}
!default;
$space-md:
${
theme
.
spacing
.
m
}
!default;
$space-lg:
${
theme
.
spacing
.
l
}
!default;
$space-sm:
${
theme
.
spacing
.
s
m
}
!default;
$space-md:
${
theme
.
spacing
.
m
d
}
!default;
$space-lg:
${
theme
.
spacing
.
l
g
}
!default;
$space-xl:
${
theme
.
spacing
.
xl
}
!default;
$spacer:
${
theme
.
spacing
.
d
}
!default;
$spacer-x: $spacer !default;
...
...
@@ -52,7 +52,7 @@ $spacers: (
),
),
) !default;
$border-width:
${
theme
.
border
.
width
.
s
}
!default;
$border-width:
${
theme
.
border
.
width
.
s
m
}
!default;
// Grid breakpoints
//
...
...
@@ -61,9 +61,9 @@ $border-width: ${theme.border.width.s} !default;
$grid-breakpoints: (
xs:
${
theme
.
breakpoints
.
xs
}
,
sm:
${
theme
.
breakpoints
.
s
}
,
md:
${
theme
.
breakpoints
.
m
}
,
lg:
${
theme
.
breakpoints
.
l
}
,
sm:
${
theme
.
breakpoints
.
s
m
}
,
md:
${
theme
.
breakpoints
.
m
d
}
,
lg:
${
theme
.
breakpoints
.
l
g
}
,
xl:
${
theme
.
breakpoints
.
xl
}
,
) !default;
...
...
@@ -97,12 +97,12 @@ $font-family-base: $font-family-sans-serif !default;
$font-size-root:
${
theme
.
typography
.
size
.
root
}
!default;
$font-size-base:
${
theme
.
typography
.
size
.
base
}
!default;
$font-size-lg:
${
theme
.
typography
.
size
.
l
}
!default;
$font-size-md:
${
theme
.
typography
.
size
.
m
}
!default;
$font-size-sm:
${
theme
.
typography
.
size
.
s
}
!default;
$font-size-lg:
${
theme
.
typography
.
size
.
l
g
}
!default;
$font-size-md:
${
theme
.
typography
.
size
.
m
d
}
!default;
$font-size-sm:
${
theme
.
typography
.
size
.
s
m
}
!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-size-h1:
${
theme
.
typography
.
heading
.
h1
}
!default;
...
...
@@ -114,7 +114,7 @@ $font-size-h6: ${theme.typography.heading.h6} !default;
$headings-font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$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;
$dt-font-weight: bold !default;
...
...
packages/grafana-ui/src/themes/default.ts
View file @
3e5016c2
...
...
@@ -11,9 +11,9 @@ const theme: GrafanaThemeCommons = {
root
:
'14px'
,
base
:
'13px'
,
xs
:
'10px'
,
s
:
'12px'
,
m
:
'14px'
,
l
:
'18px'
,
s
m
:
'12px'
,
m
d
:
'14px'
,
l
g
:
'18px'
,
},
heading
:
{
h1
:
'28px'
,
...
...
@@ -30,36 +30,36 @@ const theme: GrafanaThemeCommons = {
},
lineHeight
:
{
xs
:
1
,
s
:
1.1
,
m
:
4
/
3
,
l
:
1.5
,
s
m
:
1.1
,
m
d
:
4
/
3
,
l
g
:
1.5
,
},
},
breakpoints
:
{
xs
:
'0'
,
s
:
'544px'
,
m
:
'768px'
,
l
:
'992px'
,
s
m
:
'544px'
,
m
d
:
'768px'
,
l
g
:
'992px'
,
xl
:
'1200px'
,
},
spacing
:
{
d
:
'14px'
,
xxs
:
'2px'
,
xs
:
'4px'
,
s
:
'8px'
,
m
:
'16px'
,
l
:
'24px'
,
s
m
:
'8px'
,
m
d
:
'16px'
,
l
g
:
'24px'
,
xl
:
'32px'
,
gutter
:
'30px'
,
},
border
:
{
radius
:
{
xs
:
'2px'
,
s
:
'3px'
,
m
:
'5px'
,
s
m
:
'3px'
,
m
d
:
'5px'
,
},
width
:
{
s
:
'1px'
,
s
m
:
'1px'
,
},
},
};
...
...
packages/grafana-ui/src/types/theme.ts
View file @
3e5016c2
...
...
@@ -8,9 +8,9 @@ export interface GrafanaThemeCommons {
// TODO: not sure if should be a part of theme
breakpoints
:
{
xs
:
string
;
s
:
string
;
m
:
string
;
l
:
string
;
s
m
:
string
;
m
d
:
string
;
l
g
:
string
;
xl
:
string
;
};
typography
:
{
...
...
@@ -22,9 +22,9 @@ export interface GrafanaThemeCommons {
root
:
string
;
base
:
string
;
xs
:
string
;
s
:
string
;
m
:
string
;
l
:
string
;
s
m
:
string
;
m
d
:
string
;
l
g
:
string
;
};
weight
:
{
light
:
number
;
...
...
@@ -33,9 +33,9 @@ export interface GrafanaThemeCommons {
};
lineHeight
:
{
xs
:
number
;
//1
s
:
number
;
//1.1
m
:
number
;
// 4/3
l
:
number
;
// 1.5
s
m
:
number
;
//1.1
m
d
:
number
;
// 4/3
l
g
:
number
;
// 1.5
};
// TODO: Refactor to use size instead of custom defs
heading
:
{
...
...
@@ -51,20 +51,20 @@ export interface GrafanaThemeCommons {
d
:
string
;
xxs
:
string
;
xs
:
string
;
s
:
string
;
m
:
string
;
l
:
string
;
s
m
:
string
;
m
d
:
string
;
l
g
:
string
;
xl
:
string
;
gutter
:
string
;
};
border
:
{
radius
:
{
xs
:
string
;
s
:
string
;
m
:
string
;
s
m
:
string
;
m
d
:
string
;
};
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