css-variables.scss 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // CSS4 Variables
  2. // Remember, you cannot use scss functions with css4 variables
  3. // All css4 variables must be fixed! Scss is a PRE processor
  4. // css4 variables are processed after scss!
  5. :root {
  6. --color-main-text: #{$color-main-text};
  7. --color-main-background: #{$color-main-background};
  8. --color-main-background-translucent: #{$color-main-background-translucent};
  9. // To use like this: background-image: linear-gradient(0, var(--gradient-main-background));
  10. --gradient-main-background: var(--color-main-background) 0%, var(--color-main-background-translucent) 85%, transparent 100%;
  11. --color-background-hover: #{$color-background-hover};
  12. --color-background-dark: #{$color-background-dark};
  13. --color-background-darker: #{$color-background-darker};
  14. --color-placeholder-light: #{$color-placeholder-light};
  15. --color-placeholder-dark: #{$color-placeholder-dark};
  16. --color-primary: #{$color-primary};
  17. --color-primary-hover: #{$color-primary-hover};
  18. --color-primary-light: #{$color-primary-light};
  19. --color-primary-light-hover: #{$color-primary-light-hover};
  20. --color-primary-text: #{$color-primary-text};
  21. --color-primary-light-text: #{$color-primary-light-text};
  22. --color-primary-text-dark: #{$color-primary-text-dark};
  23. --color-primary-element: #{$color-primary-element};
  24. --color-primary-element-hover: #{$color-primary-element-hover};
  25. --color-primary-element-light: #{$color-primary-element-light};
  26. --color-primary-element-lighter: #{$color-primary-element-lighter};
  27. --color-error: #{$color-error};
  28. --color-error-hover: #{$color-error-hover};
  29. --color-warning: #{$color-warning};
  30. --color-warning-hover: #{$color-warning-hover};
  31. --color-success: #{$color-success};
  32. --color-success-hover: #{$color-success-hover};
  33. --color-text-maxcontrast: #{$color-text-maxcontrast};
  34. --color-text-light: #{$color-main-text};
  35. --color-text-lighter: #{$color-text-maxcontrast};
  36. --image-logo: #{$image-logo};
  37. --image-login-background: #{$image-login-background};
  38. --image-logoheader: #{$image-logoheader};
  39. --image-favicon: #{$image-favicon};
  40. --color-loading-light: #{$color-loading-light};
  41. --color-loading-dark: #{$color-loading-dark};
  42. --color-box-shadow: #{$color-box-shadow};
  43. --color-border: #{$color-border};
  44. --color-border-dark: #{$color-border-dark};
  45. --border-radius: #{$border-radius};
  46. --border-radius-large: #{$border-radius-large};
  47. --border-radius-pill: #{$border-radius-pill};
  48. --font-face: #{$font-face};
  49. --default-font-size: #{$default-font-size};
  50. --default-line-height: #{$default-line-height};
  51. --animation-quick: #{$animation-quick};
  52. --animation-slow: #{$animation-slow};
  53. --header-height: #{$header-height};
  54. }