Allowing themes overriding by each project needs
This commit is contained in:
1 parent
c7f31ddb0a
commit
04e9a85def
14 files changed
+90
-49
No files matched your search
@@ -3,3 +3,4 @@
|
||||
@import "{ohif:design}/styles/imports/spacings"
|
||||
@import "{ohif:design}/styles/imports/variables"
|
||||
@import "{ohif:design}/styles/imports/theme-icons"
|
||||
@import "{ohif:design}/styles/imports/theming"
|
||||
@@ -5,13 +5,15 @@ Package.describe({
|
||||
});
|
||||
|
||||
Package.onUse(function(api) {
|
||||
api.versionsFrom('1.3.5.1');
|
||||
api.versionsFrom('1.4.2.3');
|
||||
|
||||
api.use('ecmascript');
|
||||
api.use('standard-app-packages');
|
||||
api.use('jquery');
|
||||
api.use('stylus');
|
||||
|
||||
api.use('ohif:themes');
|
||||
|
||||
api.addAssets('assets/theme-icons.png', 'client');
|
||||
|
||||
// Importable colors / typography settings
|
||||
@@ -21,14 +23,7 @@ Package.onUse(function(api) {
|
||||
'styles/imports/spacings.styl',
|
||||
'styles/imports/variables.styl',
|
||||
'styles/imports/theming.styl',
|
||||
'styles/imports/theme-icons.styl',
|
||||
'styles/imports/themes/theme-tide.styl',
|
||||
'styles/imports/themes/theme-tigerlily.styl',
|
||||
'styles/imports/themes/theme-crickets.styl',
|
||||
'styles/imports/themes/theme-honeycomb.styl',
|
||||
'styles/imports/themes/theme-mint.styl',
|
||||
'styles/imports/themes/theme-overcast.styl',
|
||||
'styles/imports/themes/theme-quartz.styl'
|
||||
'styles/imports/theme-icons.styl'
|
||||
], 'client', {
|
||||
isImport: true
|
||||
});
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
$themes['crickets'] = {
|
||||
// Common pallete
|
||||
$uiYellow: #E29E4A
|
||||
$uiSkyBlue: #6FBDE2
|
||||
|
||||
// State pallete
|
||||
$uiStateError: #FFCCCC
|
||||
$uiStateErrorBorder: #993333
|
||||
$uiStateErrorText: #661111
|
||||
|
||||
$uiGrayLight: #516873
|
||||
$uiGray: #263340
|
||||
$uiGrayDark: #2B141B
|
||||
$uiGrayDarker: #231C1E
|
||||
$uiGrayDarkest: #14191E
|
||||
|
||||
// Interface UI Colors
|
||||
$defaultColor: #92C2DA
|
||||
$hoverColor: #ffffff
|
||||
$activeColor: #D4C3C1
|
||||
$uiBorderColor: #537B76
|
||||
$uiBorderColorDark: #3C5D80
|
||||
$uiBorderColorActive: #d4aaa5
|
||||
$primaryBackgroundColor: #000000
|
||||
$boxBackgroundColor: #344a61
|
||||
|
||||
// Text Colors
|
||||
$textColorActive: black
|
||||
$textPrimaryColor: #ffffff
|
||||
$textSecondaryColor: #8BE7B5
|
||||
$largeNumbersColor: #D47C66
|
||||
|
||||
// Other Colors
|
||||
$imageSliderColor: #163239
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
$themes['honeycomb'] = {
|
||||
// Common pallete
|
||||
$uiYellow: #E29E4A
|
||||
$uiSkyBlue: #6FBDE2
|
||||
|
||||
// State pallete
|
||||
$uiStateError: #FFCCCC
|
||||
$uiStateErrorBorder: #993333
|
||||
$uiStateErrorText: #661111
|
||||
|
||||
$uiGrayLight: #516873
|
||||
$uiGray: #263340
|
||||
$uiGrayDark: #252228
|
||||
$uiGrayDarker: #18161A
|
||||
$uiGrayDarkest: #14191E
|
||||
|
||||
// Interface UI Colors
|
||||
$defaultColor: #B5B5B5
|
||||
$hoverColor: #ffffff
|
||||
$activeColor: #CDA56B
|
||||
$uiBorderColor: #623337
|
||||
$uiBorderColorDark: #3C5D80
|
||||
$uiBorderColorActive: #ce9e59
|
||||
$primaryBackgroundColor: #000000
|
||||
$boxBackgroundColor: #344a61
|
||||
|
||||
// Text Colors
|
||||
$textColorActive: black
|
||||
$textPrimaryColor: #ffffff
|
||||
$textSecondaryColor: #FAB797
|
||||
$largeNumbersColor: #D47C66
|
||||
|
||||
// Other Colors
|
||||
$imageSliderColor: #163239
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
$themes['mint'] = {
|
||||
// Common pallete
|
||||
$uiYellow: #E29E4A
|
||||
$uiSkyBlue: #6FBDE2
|
||||
|
||||
// State pallete
|
||||
$uiStateError: #FFCCCC
|
||||
$uiStateErrorBorder: #993333
|
||||
$uiStateErrorText: #661111
|
||||
|
||||
$uiGrayLight: #516873
|
||||
$uiGray: #263340
|
||||
$uiGrayDark: #1D232A
|
||||
$uiGrayDarker: #15191E
|
||||
$uiGrayDarkest: #14191E
|
||||
|
||||
// Interface UI Colors
|
||||
$defaultColor: #A7E9B3
|
||||
$hoverColor: #ffffff
|
||||
$activeColor: #31B166
|
||||
$uiBorderColor: #214529
|
||||
$uiBorderColorDark: #3C5D80
|
||||
$uiBorderColorActive: #23b15d
|
||||
$primaryBackgroundColor: #000000
|
||||
$boxBackgroundColor: #344a61
|
||||
|
||||
// Text Colors
|
||||
$textColorActive: black
|
||||
$textPrimaryColor: #ffffff
|
||||
$textSecondaryColor: #A7E9B3
|
||||
$largeNumbersColor: #76D27D
|
||||
|
||||
// Other Colors
|
||||
$imageSliderColor: #163239
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
$themes['overcast'] = {
|
||||
// Common pallete
|
||||
$uiYellow: #E29E4A
|
||||
$uiSkyBlue: #6FBDE2
|
||||
|
||||
// State pallete
|
||||
$uiStateError: #FFCCCC
|
||||
$uiStateErrorBorder: #993333
|
||||
$uiStateErrorText: #661111
|
||||
|
||||
$uiGrayLight: #516873
|
||||
$uiGray: #263340
|
||||
$uiGrayDark: #252228
|
||||
$uiGrayDarker: #15191E
|
||||
$uiGrayDarkest: #14191E
|
||||
|
||||
// Interface UI Colors
|
||||
$defaultColor: #9CBECF
|
||||
$hoverColor: #ffffff
|
||||
$activeColor: #507D80
|
||||
$uiBorderColor: #404040
|
||||
$uiBorderColorDark: #3C5D80
|
||||
$uiBorderColorActive: #467c80
|
||||
$primaryBackgroundColor: #000000
|
||||
$boxBackgroundColor: #344a61
|
||||
|
||||
// Text Colors
|
||||
$textColorActive: black
|
||||
$textPrimaryColor: #ffffff
|
||||
$textSecondaryColor: #73F2FC
|
||||
$largeNumbersColor: #74F1FA
|
||||
|
||||
// Other Colors
|
||||
$imageSliderColor: #163239
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
$themes['quartz'] = {
|
||||
// Common pallete
|
||||
$uiYellow: #E29E4A
|
||||
$uiSkyBlue: #6FBDE2
|
||||
|
||||
// State pallete
|
||||
$uiStateError: #FFCCCC
|
||||
$uiStateErrorBorder: #993333
|
||||
$uiStateErrorText: #661111
|
||||
|
||||
$uiGrayLight: #516873
|
||||
$uiGray: #263340
|
||||
$uiGrayDark: #2B2E3F
|
||||
$uiGrayDarker: #151A1F
|
||||
$uiGrayDarkest: #14191E
|
||||
|
||||
// Interface UI Colors
|
||||
$defaultColor: #8EA2A4
|
||||
$hoverColor: #ffffff
|
||||
$activeColor: #7858CE
|
||||
$uiBorderColor: #885B86
|
||||
$uiBorderColorDark: #3C5D80
|
||||
$uiBorderColorActive: #6843cc
|
||||
$primaryBackgroundColor: #000000
|
||||
$boxBackgroundColor: #344a61
|
||||
|
||||
// Text Colors
|
||||
$textColorActive: black
|
||||
$textPrimaryColor: #ffffff
|
||||
$textSecondaryColor: #D7E8FE
|
||||
$largeNumbersColor: #ABCDF6
|
||||
|
||||
// Other Colors
|
||||
$imageSliderColor: #163239
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
$themes['tide'] = {
|
||||
// Common pallete
|
||||
$uiYellow: #E29E4A
|
||||
$uiSkyBlue: #6FBDE2
|
||||
|
||||
// State pallete
|
||||
$uiStateError: #FFCCCC
|
||||
$uiStateErrorBorder: #993333
|
||||
$uiStateErrorText: #661111
|
||||
|
||||
$uiGrayLight: #516873
|
||||
$uiGray: #263340
|
||||
$uiGrayDark: #16202B
|
||||
$uiGrayDarker: #151A1F
|
||||
$uiGrayDarkest: #14191E
|
||||
|
||||
// Interface UI Colors
|
||||
$defaultColor: #9CCEF9
|
||||
$hoverColor: #ffffff
|
||||
$activeColor: #20A5D6
|
||||
$uiBorderColor: #44626F
|
||||
$uiBorderColorDark: #3C5D80
|
||||
$uiBorderColorActive: #00a4d9
|
||||
$primaryBackgroundColor: #000000
|
||||
$boxBackgroundColor: #344a61
|
||||
|
||||
// Text Colors
|
||||
$textColorActive: black
|
||||
$textPrimaryColor: #ffffff
|
||||
$textSecondaryColor: #91B9CD
|
||||
$largeNumbersColor: #6FBDE2
|
||||
|
||||
// Other Colors
|
||||
$imageSliderColor: #163239
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
$themes['tigerlily'] = {
|
||||
// Common pallete
|
||||
$uiYellow: #E29E4A
|
||||
$uiSkyBlue: #6FBDE2
|
||||
|
||||
// State pallete
|
||||
$uiStateError: #FFCCCC
|
||||
$uiStateErrorBorder: #CC6666
|
||||
$uiStateErrorText: #661111
|
||||
|
||||
$uiGrayLight: #516873
|
||||
$uiGray: #263340
|
||||
$uiGrayDark: #26333F
|
||||
$uiGrayDarker: #151A1F
|
||||
$uiGrayDarkest: #14191E
|
||||
|
||||
// Interface UI Colors
|
||||
$defaultColor: #9ACFFD
|
||||
$hoverColor: #ffffff
|
||||
$activeColor: #fa8947
|
||||
$uiBorderColor: #875a86
|
||||
$uiBorderColorDark: #744b71
|
||||
$uiBorderColorActive: #ff8a3d
|
||||
$primaryBackgroundColor: #000000
|
||||
$boxBackgroundColor: #5b3a59
|
||||
|
||||
// Text Colors
|
||||
$textColorActive: black
|
||||
$textPrimaryColor: #ffffff
|
||||
$textSecondaryColor: #9CCDF8
|
||||
$largeNumbersColor: #D47C66
|
||||
|
||||
// Other Colors
|
||||
$imageSliderColor: #4b2c3c //#163239
|
||||
}
|
||||
@@ -1,14 +1,4 @@
|
||||
$themes = {}
|
||||
$defaultTheme = 'tide'
|
||||
|
||||
// Import the theme variables
|
||||
@import "./themes/theme-tide.styl"
|
||||
@import "./themes/theme-tigerlily.styl"
|
||||
@import "./themes/theme-crickets.styl"
|
||||
@import "./themes/theme-honeycomb.styl"
|
||||
@import "./themes/theme-mint.styl"
|
||||
@import "./themes/theme-overcast.styl"
|
||||
@import "./themes/theme-quartz.styl"
|
||||
@require "{ohif:themes}/themes"
|
||||
|
||||
/*
|
||||
* Process each theme variable in the given value, splitting it by space
|
||||
|
||||
Reference in new issue
Block a user