Recount-Server/web/sass/variables.scss

47 lines
1.8 KiB
SCSS
Raw Normal View History

2024-01-14 18:00:51 -08:00
@use 'catppuccin';
@each $flavor, $color in catppuccin.$palette {
body.#{$flavor} {
2024-01-24 18:58:29 -08:00
--#{$prefix}-base: #{map-get($color, 'base')};
2024-01-14 18:00:51 -08:00
--#{$prefix}-crust: #{map-get($color, 'crust')};
--#{$prefix}-mantle: #{map-get($color, 'mantle')};
--#{$prefix}-surface0: #{map-get($color, 'surface0')};
2024-01-15 13:47:16 -08:00
--#{$prefix}-surface1: #{map-get($color, 'surface1')};
2024-01-15 19:26:51 -08:00
--#{$prefix}-surface2: #{map-get($color, 'surface2')};
--#{$prefix}-overlay0: #{map-get($color, 'overlay0')};
--#{$prefix}-overlay1: #{map-get($color, 'overlay1')};
--#{$prefix}-overlay2: #{map-get($color, 'overlay2')};
2024-01-15 13:47:16 -08:00
--#{$prefix}-text: #{map-get($color, 'text')};
2024-01-15 19:26:51 -08:00
--#{$prefix}-green: #{map-get($color, 'green')};
--#{$prefix}-red: #{map-get($color, 'red')};
2024-01-21 20:46:11 -08:00
--#{$prefix}-sky: #{map-get($color, 'sky')};
--#{$prefix}-sapphire: #{map-get($color, 'sapphire')};
--#{$prefix}-teal: #{map-get($color, 'teal')};
--#{$prefix}-maroon: #{map-get($color, 'maroon')};
--#{$prefix}-mauve: #{map-get($color, 'mauve')};
2024-01-14 18:00:51 -08:00
--#{$prefix}-nav-bg: #{map-get($color, 'crust')};
--#{$prefix}-nav-color: #{map-get($color, 'text')};
--#{$prefix}-nav-logo-bg: #{map-get($color, 'rosewater')};
--#{$prefix}-nav-hover: #{map-get($color, 'surface2')};
--#{$prefix}-nav-active-bg: #{map-get($color, 'mauve')};
--#{$prefix}-nav-active-color: #{map-get($color, 'base')};
}
}
2024-01-23 19:20:33 -08:00
@each $color, $_ in map-get(catppuccin.$palette, 'latte') {
.c-#{$color} {
background-color: var(--#{$prefix}-#{$color}) !important;
}
}
.tc-text {
2024-01-15 13:47:16 -08:00
color: var(--#{$prefix}-text);
}
2024-01-14 18:00:51 -08:00
.c-s0 {
background-color: var(--#{$prefix}-surface0);
}
2024-01-15 13:47:16 -08:00
.c-s1 {
background-color: var(--#{$prefix}-surface1);
}