skip to Main Content

Svelte SMUI, retrieve theme colors in javascript – CSS

I am using SMUI with svelte and in SCSS I have set the theme colors: @use 'sass:color'; @use '@material/theme/color-palette'; @use '@material/theme/index' as theme with ( $primary: #ef8611, $secondary: color.scale(#8aace1, $lightness: 90%), $surface: #333, $background: #fff, $error: color-palette.$red-900 ); The value…

VIEW QUESTION

Tailwind postcss nesting is not working with nested scss codes

I am trying to use scss but tailwind is not compiling as expected. Thats how i build application.css "build:css": "tailwindcss -i ./app/assets/stylesheets/application.scss -o ./app/assets/builds/application.css" Here is my application.scss; @import 'application_dock/colors.scss'; @import 'application_dock/pages/spots.scss'; @tailwind base; @tailwind components; @tailwind utilities; body {…

VIEW QUESTION

Can an SCSS list of variables inherit?

I have some lists of SCSS variables which are used in mixins, can I create a 'master' list which the others inherit? $vars: ( main-colour-active: #0b8579, text: #424242, button-text: $white, font-family: $font-family-base, ); $nav: ( inherit $vars, background-color: $blue, );…

VIEW QUESTION
Back To Top
Search