Search
 
SCRIPT & CODE EXAMPLE
 

CSS

sass import variable from another file

// When importing the master, you leave out the underscore, and it
// will look for a file with the underscore. This prevents the SCSS
// compiler from generating a CSS file from it.
@import "assets/master";

// Then do the rest of my CSS afterwards:
.text { color: $accent; }

// assets/_master.scss 
$accent: #6D87A7;           
$error: #811702;
Comment

sass use variables from another file

//_variables.scss 
$light: #f5f5f5;
$dark: ##2e3033;

//_theme.scss
@import './_variables'; //relative path to file
body {
	background-color: $dark;
}
Comment

PREVIOUS NEXT
Code Example
Css :: remove contact form 7 css 
Css :: how to change background color in css 
Css :: Override Inline Styles with CSS 
Css :: how to change highlight color on website 
Css :: tailwind css installation 
Css :: SassError: Top-level selectors may not contain the parent selector "&" 
Css :: scss variables 
Css :: css grid take 2 columns 
Css :: make hr black 
Css :: media min height css 
Css :: input area bootstrap highlight 
Css :: how to hide scrollbar in tailwind css 
Css :: margin auto not centering 
Css :: remove position absolute attribute by adding css 
Css :: text-indent 
Css :: css td vertical align 
Css :: box glow css 
Css :: css media query max width 
Css :: first-child 
Css :: list elements vertically in html 
Css :: italic in css 
Css :: how to add a border in css 
Css :: how to use background property in css 
Css :: what css vmin 
Css :: animated background css 
Css :: grid-template-columns 
Css :: input backgound color 
Css :: .txt:hover { text-decoration: underline; } 
Css :: css materialize 
Css :: css border without changing size 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =