mirror of
https://github.com/immich-app/immich.git
synced 2025-01-12 15:32:36 +02:00
feat(web): use css vraiables (#5022)
This commit is contained in:
parent
72fb421f54
commit
24670178dc
@ -2,6 +2,28 @@
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
/* light */
|
||||
--immich-primary: 66 80 175;
|
||||
--immich-bg: 255 255 255;
|
||||
--immich-fg: 0 0 0;
|
||||
--immich-gray: 246 246 244;
|
||||
--immich-error: 229 115 115;
|
||||
--immich-success: 129 199 132;
|
||||
--immich-warning: 255 183 77;
|
||||
|
||||
/* dark */
|
||||
--immich-dark-primary: 172 203 250;
|
||||
--immich-dark-bg: 0 0 0;
|
||||
--immich-dark-fg: 229 231 235;
|
||||
--immich-dark-gray: 33 33 33;
|
||||
--immich-dark-error: 211 47 47;
|
||||
--immich-dark-success: 56 142 60;
|
||||
--immich-dark-warning: 245 124 0;
|
||||
}
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Work Sans';
|
||||
src: url('$lib/assets/fonts/WorkSans-VariableFont_wght.ttf') format('truetype-variations');
|
||||
|
@ -6,22 +6,22 @@ module.exports = {
|
||||
extend: {
|
||||
colors: {
|
||||
// Light Theme
|
||||
'immich-primary': '#4250af',
|
||||
'immich-bg': 'white',
|
||||
'immich-fg': 'black',
|
||||
'immich-gray': '#F6F6F4',
|
||||
'immich-error': '#e57373',
|
||||
'immich-success': '#81c784',
|
||||
'immich-warning': '#ffb74d',
|
||||
'immich-primary': 'rgb(var(--immich-primary) / <alpha-value>)',
|
||||
'immich-bg': 'rgb(var(--immich-bg) / <alpha-value>)',
|
||||
'immich-fg': 'rgb(var(--immich-fg) / <alpha-value>)',
|
||||
'immich-gray': 'rgb(var(--immich-gray) / <alpha-value>)',
|
||||
'immich-error': 'rgb(var(--immich-error) / <alpha-value>)',
|
||||
'immich-success': 'rgb(var(--immich-success) / <alpha-value>)',
|
||||
'immich-warning': 'rgb(var(--immich-warning) / <alpha-value>)',
|
||||
|
||||
// Dark Theme
|
||||
'immich-dark-primary': '#adcbfa',
|
||||
'immich-dark-bg': 'black',
|
||||
'immich-dark-fg': '#e5e7eb',
|
||||
'immich-dark-gray': '#212121',
|
||||
'immich-dark-error': '#d32f2f',
|
||||
'immich-dark-success': '#388e3c',
|
||||
'immich-dark-warning': '#f57c00',
|
||||
'immich-dark-primary': 'rgb(var(--immich-dark-primary) / <alpha-value>)',
|
||||
'immich-dark-bg': 'rgb(var(--immich-dark-bg) / <alpha-value>)',
|
||||
'immich-dark-fg': 'rgb(var(--immich-dark-fg) / <alpha-value>)',
|
||||
'immich-dark-gray': 'rgb(var(--immich-dark-gray) / <alpha-value>)',
|
||||
'immich-dark-error': 'rgb(var(--immich-dark-error) / <alpha-value>)',
|
||||
'immich-dark-success': 'rgb(var(--immich-dark-success) / <alpha-value>)',
|
||||
'immich-dark-warning': 'rgb(var(--immich-dark-warning) / <alpha-value>)',
|
||||
},
|
||||
fontFamily: {
|
||||
'immich-title': ['Snowburst One', 'cursive'],
|
||||
|
Loading…
Reference in New Issue
Block a user