-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial setup for Amsterdam theme (#2633)
* Add Amsterdam options to theme selector * Add simple override for panels * Add changelog, documentation and tweak color * Update pull request template to mention new theme * Clean up documentation * Fix grammer in wiki/theming.md Co-Authored-By: Caroline Horn <[email protected]> * Fix imports in amsterdam's global_styling Co-Authored-By: Caroline Horn <[email protected]> * Clean up amsterdam global_styling imports * Fix color importing issues * Fix duplicate in pull request template
- Loading branch information
1 parent
c02628f
commit c7e7e94
Showing
16 changed files
with
230 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// sass-lint:disable no-url-domains, no-url-protocols | ||
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i,700,700i'); | ||
@import url('https://rsms.me/inter/inter-ui.css'); | ||
|
||
@import '../../src/theme_amsterdam_dark'; | ||
@import './components/guide_components'; | ||
@import './views/suggest/global_filter_group'; | ||
|
||
// Elastic charts | ||
@import '~@elastic/charts/dist/theme'; | ||
@import '../../src/themes/charts/theme'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// sass-lint:disable no-url-domains, no-url-protocols | ||
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i,700,700i'); | ||
@import url('https://rsms.me/inter/inter-ui.css'); | ||
|
||
@import '../../src/theme_amsterdam_light'; | ||
@import './components/guide_components'; | ||
@import './views/suggest/global_filter_group'; | ||
|
||
// Elastic charts | ||
@import '~@elastic/charts/dist/theme'; | ||
@import '../../src/themes/charts/theme'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// These are variable overwrites used only for this theme. | ||
@import 'themes/eui-amsterdam/eui_amsterdam_colors_dark'; | ||
|
||
// Global styling | ||
@import 'themes/eui-amsterdam/global_styling/index'; | ||
|
||
// Components | ||
@import 'components/index'; | ||
|
||
// Packages | ||
@import '../packages/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This is the default theme. | ||
@import 'themes/eui-amsterdam/eui_amsterdam_colors_light'; | ||
|
||
// Global styling | ||
@import 'themes/eui-amsterdam/global_styling/index'; | ||
|
||
// Components | ||
@import 'components/index'; | ||
|
||
// Packages | ||
@import '../packages/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Core | ||
$euiColorPrimary: #238CFF; | ||
$euiColorSecondary: #7DE2D1; | ||
$euiColorAccent: #F990C0; | ||
$euiColorHighlight: #2E2D25; | ||
|
||
// These colors stay the same no matter the theme | ||
$euiColorGhost: #FFF; | ||
$euiColorInk: #000; | ||
|
||
// Status | ||
$euiColorSuccess: $euiColorSecondary; | ||
$euiColorWarning: #FFCE7A; | ||
$euiColorDanger: #F66; | ||
|
||
// Grays | ||
$euiColorEmptyShade: #1D1E24; | ||
$euiColorLightestShade: #25262E; | ||
$euiColorLightShade: #343741; | ||
$euiColorMediumShade: #535966; | ||
$euiColorDarkShade: #98A2B3; | ||
$euiColorDarkestShade: #D4DAE5; | ||
$euiColorFullShade: #FFF; | ||
|
||
// Variations from core | ||
$euiTextColor: #DFE5EF; | ||
$euiLinkColor: $euiColorPrimary; | ||
$euiFocusBackgroundColor: #232635; | ||
$euiShadowColor: #000; | ||
$euiShadowColorLarge: #000; | ||
|
||
// Visualization colors | ||
// Currently this is the same as light. It is required to list them for our docs to work | ||
|
||
$euiColorVis0: #00B3A4; | ||
$euiColorVis1: #3185FC; | ||
$euiColorVis2: #DB1374; | ||
$euiColorVis3: #490092; | ||
$euiColorVis4: #FEB6DB; | ||
$euiColorVis5: #E6C220; | ||
$euiColorVis6: #BFA180; | ||
$euiColorVis7: #F98510; | ||
$euiColorVis8: #461A0A; | ||
$euiColorVis9: #920000; | ||
|
||
$euiColorChartLines: #343741; | ||
$euiColorChartBand: #2A2C35; | ||
|
||
// Code | ||
|
||
$euiCodeBlockCommentColor: #656565; | ||
$euiCodeBlockSelectorTagColor: #C792EA; | ||
$euiCodeBlockStringColor: #C3E88D; | ||
$euiCodeBlockNumberColor: #F77669; | ||
$euiCodeBlockKeywordColor: #C792EA; | ||
$euiCodeBlockFunctionTitleColor: #75A5FF; | ||
$euiCodeBlockTagColor: #ABB2BF; | ||
$euiCodeBlockNameColor: #E06C75; | ||
$euiCodeBlockTypeColor: #DA4939; | ||
$euiCodeBlockAttributeColor: #80CBBF; | ||
$euiCodeBlockSymbolColor: #C792EA; | ||
$euiCodeBlockParamsColor: #EEFFF7; | ||
$euiCodeBlockMetaColor: #75A5FF; | ||
$euiCodeBlockTitleColor: #75A5FF; | ||
$euiCodeBlockSectionColor: #FFC66D; | ||
$euiCodeBlockAdditionBackgroundColor: #144212; | ||
$euiCodeBlockAdditionColor: #E6E1DC; | ||
$euiCodeBlockDeletionBackgroundColor: #600; | ||
$euiCodeBlockDeletionColor: #E6E1DC; | ||
$euiCodeBlockSelectorClassColor: #FFCB68; | ||
$euiCodeBlockSelectorIdColor: #F77669; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$euiColorPrimary: #006DE4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Core | ||
|
||
// Functions need to be first, since we use them in our variables and mixin definitions | ||
@import '../../../global_styling/functions/index'; | ||
|
||
// Variables come next, and are used in some mixins | ||
@import '../../../global_styling/variables/index'; | ||
|
||
// Mixins provide generic code expansion through helpers | ||
@import '../../../global_styling/mixins/index'; | ||
@import 'mixins/index'; | ||
|
||
// Utility classes provide one-off selectors for common css problems | ||
@import '../../../global_styling/utility/index'; | ||
|
||
// The reset file makes use of variables and mixins | ||
@import '../../../global_styling/reset/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import 'panel'; |
51 changes: 51 additions & 0 deletions
51
src/themes/eui-amsterdam/global_styling/mixins/_panel.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@mixin euiPanel($selector) { | ||
@if variable-exists(selector) == false { | ||
@error 'A $selector must be provided to @mixin euiPanel().'; | ||
} @else { | ||
#{$selector} { | ||
|
||
@include euiBottomShadowSmall; | ||
background-color: $euiColorEmptyShade; | ||
border: none; | ||
border-radius: $euiBorderRadius; | ||
flex-grow: 1; | ||
|
||
&#{$selector}--flexGrowZero { | ||
flex-grow: 0; | ||
} | ||
|
||
&#{$selector}--isClickable { | ||
// in case of button wrapper which inherently is inline-block and no width | ||
display: block; | ||
width: 100%; | ||
text-align: left; | ||
|
||
// transition the shadow | ||
transition: all $euiAnimSpeedFast $euiAnimSlightResistance; | ||
|
||
&:hover, | ||
&:focus { | ||
@include euiSlightShadowHover; | ||
transform: translateY(-2px); | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
&#{$selector}--shadow { | ||
@include euiBottomShadowMedium; | ||
|
||
@if (lightness($euiTextColor) < 50) { | ||
border-bottom-color: transparentize($euiShadowColor, .5); | ||
} @else { | ||
// Applied again here in case dark theme overrides light | ||
border-bottom-color: $euiBorderColor; | ||
} | ||
|
||
&#{$selector}--isClickable:hover, | ||
&#{$selector}--isClickable:focus { | ||
@include euiBottomShadow($color: $euiShadowColor, $opacity: .2); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters