css — Import At-Rule
@import "https://cdn.jsdelivr.net/npm/semantic-props@2.1.0";@import "https://cdn.jsdelivr.net/npm/semantic-props@2.1.0";npm install semantic-propsThis feature is unsupported on your browser.
Semantic Props provides customizable theme alongside select viewport style() queries. Learn More.
Theme style query values are for demonstration purposes only. Initial value is none.
Viewport style query values are boolean true or false.
Initial value is false.
Semantic Props provides CSS border values for style and radius.
var(--line)var(--small-radius)Medium Radius var(--medium-radius)Large Radius var(--large-radius)Semantic Props provides a simple but expansive color palette.
Semantic Props provides CSS filter and opacity values for various types of media.
var(--light-blur)
var(--medium-blur)
var(--heavy-blur)
var(--low-brightness)
var(--high-brightness)
var(--low-contrast)
var(--high-contrast)
var(--weak-grayscale)
var(--medium-grayscale)
var(--strong-grayscale)
var(--low-hue-rotate)
var(--high-hue-rotate)
var(--weak-invert)
var(--medium-invert)
var(--strong-invert)
var(--low-opacity)
var(--medium-opacity)
var(--high-opacity)
var(--low-saturation)
var(--high-saturation)
var(--weak-sepia)
var(--medium-sepia)
var(--strong-sepia)Semantic Props provides various values for styling fonts.
var(--9x-large) The quick brown fox jumps over the lazy dog.var(--8x-large) The quick brown fox jumps over the lazy dog.var(--7x-large) The quick brown fox jumps over the lazy dog.var(--6x-large) The quick brown fox jumps over the lazy dog.var(--5x-large) The quick brown fox jumps over the lazy dog.var(--4x-large) The quick brown fox jumps over the lazy dog.var(--3x-large) The quick brown fox jumps over the lazy dog.var(--2x-large) The quick brown fox jumps over the lazy dog.var(--x-large) The quick brown fox jumps over the lazy dog.var(--large) The quick brown fox jumps over the lazy dog.var(--medium) The quick brown fox jumps over the lazy dog.var(--small) The quick brown fox jumps over the lazy dog.var(--x-small) The quick brown fox jumps over the lazy dog.var(--larger) The quick brown fox jumps over the lazy dog.var(--smaller) The quick brown fox jumps over the lazy dog.var(--body-family) var(--display-family) var(--mono-family) var(--accent-family) var(--thin-weight)var(--light-weight)var(--regular-weight)var(--bold-weight)var(--heavy-weight)var(--tight-letter)var(--normal-letter)var(--wide-letter)var(--short-line)var(--normal-line)var(--tall-line)var(--tight-word)var(--normal-word)var(--wide-word)Semantic Props provides CSS aspect-ratio values for various types of media.
var(--square-ratio)var(--landscape-ratio)var(--portrait-ratio)var(--video-ratio)var(--wide-ratio)Semantic Props provides CSS values for irregular display safe-areas. Learn More.
The following demo modifies the values for presentation purposes.
Semantic Props provides CSS text-shadow, box-shadow and filter shadow effects.
var(--light-text-shadow)Medium Text Shadow var(--medium-text-shadow)Heavy Text Shadow var(--heavy-text-shadow)var(--light-box-shadow)Medium Box Shadow var(--medium-box-shadow)Heavy Box Shadow var(--heavy-box-shadow)var(--light-inset-shadow)Medium Inset Shadow var(--medium-inset-shadow)Heavy Inset Shadow var(--heavy-inset-shadow)var(--light-shadow)Medium Shadow var(--medium-shadow)Heavy Shadow var(--heavy-shadow)Semantic Props provides containers alongside sizes.
Semantic Props provides CSS animation values for timing and easing.
Semantic Props provides CSS scale values.
var(--small-scale) var(--large-scale) Semantic Props provides CSS z-index values for positioning.
var(--z-bottom)Z-Relative var(--z-relative)Z-Absolute var(--z-absolute)Z-Sticky var(--z-sticky)Z-Fixed var(--z-fixed)Z-Top var(--z-top)