accessibility
mixins
sr-only
@mixin sr-only() { ... }Description
Visible only to screen readers
Parameters
None.
not-sr-only
@mixin not-sr-only() { ... }Description
Visible to everyone Mostly for restoring things previously hidden by sr-only
Parameters
None.
borders
functions
border-width
@function border-width($key: 'DEFAULT') { ... }Description
Look up a border width from $border-widths.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Key from | String | 'DEFAULT' |
Returns
LengthRequires
- [variable]
border-widths
Used by
rounded
@function rounded($key: 'DEFAULT') { ... }Description
Look up a border radius from $border-radii, returned in rem.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Key from | String | 'DEFAULT' |
Returns
LengthRequires
- [function]
px-to-rem - [variable]
border-radii
Used by
- [mixin]
rounded - [mixin]
rounded-t - [mixin]
rounded-b - [mixin]
rounded-l - [mixin]
rounded-r - [mixin]
rounded-tl - [mixin]
rounded-tr - [mixin]
rounded-bl - [mixin]
rounded-br - [mixin]
rounded-range - [mixin]
rounded-t-range - [mixin]
rounded-b-range - [mixin]
rounded-l-range - [mixin]
rounded-r-range - [mixin]
box
mixins
rounded
@mixin rounded($key: 'DEFAULT') { ... }Description
Set border-radius on all corners.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Key from | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-t
@mixin rounded-t($key: 'DEFAULT') { ... }Description
Set border-radius on top corners.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-b
@mixin rounded-b($key: 'DEFAULT') { ... }Description
Set border-radius on bottom corners.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-l
@mixin rounded-l($key: 'DEFAULT') { ... }Description
Set border-radius on left corners.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-r
@mixin rounded-r($key: 'DEFAULT') { ... }Description
Set border-radius on right corners.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-tl
@mixin rounded-tl($key: 'DEFAULT') { ... }Description
Set border-top-left-radius.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-tr
@mixin rounded-tr($key: 'DEFAULT') { ... }Description
Set border-top-right-radius.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-bl
@mixin rounded-bl($key: 'DEFAULT') { ... }Description
Set border-bottom-left-radius.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
rounded-br
@mixin rounded-br($key: 'DEFAULT') { ... }Description
Set border-bottom-right-radius.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
rounded
border
@mixin border($key: 'DEFAULT') { ... }Description
Set border-width from the border width scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
border-width
border-x
@mixin border-x($key: 'DEFAULT') { ... }Description
Set left and right border-width from the border width scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
border-width
border-y
@mixin border-y($key: 'DEFAULT') { ... }Description
Set top and bottom border-width from the border width scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
border-width
border-t
@mixin border-t($key: 'DEFAULT') { ... }Description
Set border-top-width from the border width scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
border-width
border-r
@mixin border-r($key: 'DEFAULT') { ... }Description
Set border-right-width from the border width scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
border-width
border-b
@mixin border-b($key: 'DEFAULT') { ... }Description
Set border-bottom-width from the border width scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
border-width
border-l
@mixin border-l($key: 'DEFAULT') { ... }Description
Set border-left-width from the border width scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | — none | String | 'DEFAULT' |
Requires
- [function]
border-width
rounded-range
@mixin rounded-range($base, $breakpoint-range...) { ... }Description
Responsive border-radius. Base value + overrides at named breakpoints.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | Radius key for default | String | — none |
$breakpoint-range | Keyword args mapping breakpoint → radius key | Arglist | — none |
Requires
- [function]
rounded - [variable]
breakpoints
rounded-t-range
@mixin rounded-t-range($base, $breakpoint-range...) { ... }Description
Responsive top border-radius across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | String | — none |
$breakpoint-range | — none | Arglist | — none |
Requires
- [function]
rounded - [variable]
breakpoints
rounded-b-range
@mixin rounded-b-range($base, $breakpoint-range...) { ... }Description
Responsive bottom border-radius across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | String | — none |
$breakpoint-range | — none | Arglist | — none |
Requires
- [function]
rounded - [variable]
breakpoints
rounded-l-range
@mixin rounded-l-range($base, $breakpoint-range...) { ... }Description
Responsive left border-radius across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | String | — none |
$breakpoint-range | — none | Arglist | — none |
Requires
- [function]
rounded - [variable]
breakpoints
rounded-r-range
@mixin rounded-r-range($base, $breakpoint-range...) { ... }Description
Responsive right border-radius across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | String | — none |
$breakpoint-range | — none | Arglist | — none |
Requires
- [function]
rounded - [variable]
breakpoints
color
variables
palette
$palette: config.$colors;Description
Palette includes Tailwind colours when enabled, with custom colours merged on top.
Type
Map
Used by
- [function]
color
functions
color
@function color($name) { ... }Description
Look up a colour from the palette by name.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Colour name (e.g. | String | — none |
Returns
ColorRequires
- [variable]
palette
Used by
- [mixin]
bg - [mixin]
text-color - [mixin]
border-color - [mixin]
palette - [mixin]
box - [mixin]
divide-color
convert
@function convert($color, $space: config.$output-colorspace) { ... }Description
Convert a colour to the selected $output-colorspace. Returns unchanged if $convert-colorspace is false.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$color | — none | Color | — none |
$space | — none | String | config.$output-colorspace |
Returns
ColorRequires
- [variable]
convert-colorspace
Used by
- [mixin]
bg - [mixin]
text-color - [mixin]
border-color - [mixin]
palette - [mixin]
box - [mixin]
divide-color
to-oklch
@function to-oklch($color) { ... }Description
Convert a colour to OKLCH.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$color | — none | Color | — none |
Returns
ColorRequires
- [variable]
convert-colorspace
to-oklab
@function to-oklab($color) { ... }Description
Convert a colour to OKLab.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$color | — none | Color | — none |
Returns
ColorRequires
- [variable]
convert-colorspace
to-hsl
@function to-hsl($color) { ... }Description
Convert a colour to HSL.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$color | — none | Color | — none |
Returns
ColorRequires
- [variable]
convert-colorspace
to-rgb
@function to-rgb($color) { ... }Description
Convert a colour to sRGB.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$color | — none | Color | — none |
Returns
ColorRequires
- [variable]
convert-colorspace
to-p3
@function to-p3($color) { ... }Description
Convert a colour to Display P3.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$color | — none | Color | — none |
Returns
ColorRequires
- [variable]
convert-colorspace
opacity
@function opacity($name) { ... }Description
Look up an opacity value from $opacities.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String or Number | — none |
Returns
NumberRequires
Used by
- [mixin]
opacity
mixins
bg
@mixin bg($name) { ... }Description
Set background-color from the colour palette.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Colour name | String | — none |
Example
.card { @include crayon.bg("blue-500"); }.card
+crayon.bg("blue-500")Requires
text-color
@mixin text-color($name) { ... }Description
Set color from the colour palette.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Colour name | String | — none |
Example
.title { @include crayon.text-color("slate-900"); }.title
+crayon.text-color("slate-900")Requires
border-color
@mixin border-color($name) { ... }Description
Set border-color from the colour palette.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Colour name | String | — none |
Example
.panel { @include crayon.border-color("slate-200"); }.panel
+crayon.border-color("slate-200")Requires
opacity
@mixin opacity($name) { ... }Description
Set opacity from the opacity scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
opacity
composition
mixins
vstack
@mixin vstack($gap, $reverse: false) { ... }Description
Stack children vertically(flex) with an option for a gap.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$gap | size key (e.g. | Number | — none |
$reverse | Reverse the stacking direction | Bool | false |
Example
.card-list { @include crayon.vstack(4); }
.card-list-reversed { @include crayon.vstack(4, $reverse: true); }.card-list
+crayon.vstack(4)
.card-list-reversed
+crayon.vstack(4, $reverse: true)Requires
- [function]
size
Used by
- [mixin]
stack
stack
@mixin stack($gap, $reverse: false) { ... }Description
Alias for vstack. Stack children vertically with a gap.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$gap | size key (e.g. | Number | — none |
$reverse | Reverse the stacking direction | Bool | false |
Example
.sidebar { @include crayon.stack(6); }
.sidebar-reversed { @include crayon.stack(6, $reverse: true); }.sidebar
+crayon.stack(6)
.sidebar-reversed
+crayon.stack(6, $reverse: true)Requires
- [mixin]
vstack
hstack
@mixin hstack($gap, $reverse: false) { ... }Description
Lay children out in a horizontal row with a gap. Items do not wrap. Use cluster if you want items to wrap when space is tight.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$gap | size key (e.g. | Number | — none |
$reverse | Reverse the stacking direction | Bool | false |
Example
.toolbar { @include crayon.hstack(3); }
.toolbar-reversed { @include crayon.hstack(3, $reverse: true); }.toolbar
+crayon.hstack(3)
.toolbar-reversed
+crayon.hstack(3, $reverse: true)Requires
- [function]
size
cluster
@mixin cluster($gap) { ... }Description
Horizontal row with wrapping. Reflows when space is tight. Good for tag lists, badge groups, and button groups.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$gap | size key (e.g. | Number | — none |
Example
.tags { @include crayon.cluster(2); }.tags
+crayon.cluster(2)Requires
- [function]
size
center
@mixin center($axis: `null`, $children: false) { ... }Description
The solution to the hardest problem developers face. Centering a div. Pass x or y to constrain to one axis. Set $children to true to center its children instead.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$axis | Axis to center on: | String or Null | `null` |
$children | Whether to flex-center the element's children | Bool | false |
Example
.page { @include crayon.center; }
.content { @include crayon.center(x); }
.hero { @include crayon.center($children: true); }
.sidebar { @include crayon.center(y, $children: true); }.page
+crayon.center
.content
+crayon.center(x)
.hero
+crayon.center($children: true)
.sidebar
+crayon.center(y, $children: true)palette
@mixin palette($color, $bg: null, $text: null, $border: null) { ... }Description
Apply background, text, and border colours in a single colour from the palette. All parameters are optional. The shade number maps directly to the palette: "red" + 100 → red-100.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$color | Colour family prefix (e.g. | String | — none |
$bg | Background shade (e.g. | Number or Null | null |
$text | Text colour shade (e.g. | Number or Null | null |
$border | Border colour shade (e.g. | Number or Null | null |
Example
.alert-error { @include crayon.palette("red", $bg: 100, $text: 900, $border: 300); }
.badge { @include crayon.palette("emerald", $bg: 50, $text: 700); }.alert-error
+crayon.palette("red", $bg: 100, $text: 900, $border: 300)
.badge
+crayon.palette("emerald", $bg: 50, $text: 700)Requires
box
@mixin box($p: null, $px: null, $py: null, $rounded: null, $bg: null, $border: null) { ... }Description
Padding, border radius, background color and border all at once. All parameters are optional $px / $py can be used alongside $p for asymmetric padding (e.g. badges and buttons that need wider horizontal padding than vertical). $border sets 1px solid <colour>. For custom widths combine with @include border("2").
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$p | Uniform padding (size key) | Number or Null | null |
$px | Horizontal padding override (size key) | Number or Null | null |
$py | Vertical padding override (size key) | Number or Null | null |
$rounded | Border radius key (e.g. | String or Null | null |
$bg | Background colour name (e.g. | String or Null | null |
$border | Border colour name (e.g. | String or Null | null |
Example
.panel { @include crayon.box($p: 6, $rounded: "xl", $bg: "white", $border: "slate-200"); }
.badge { @include crayon.box($px: 3, $py: 1, $rounded: "full", $bg: "blue-100"); }.panel
+crayon.box($p: 6, $rounded: "xl", $bg: "white", $border: "slate-200")
.badge
+crayon.box($px: 3, $py: 1, $rounded: "full", $bg: "blue-100")Requires
fluid
@mixin fluid($property, $min-key, $max-key, $from: 'sm', $to: 'xl') { ... }Description
Generate a clamp() value that interpolates between two scale values across a viewport range.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$property | CSS property to set | String | — none |
$min-key | Size key (numeric) or font-size key (string) | Number or String | — none |
$max-key | Upper bound, same types as | Number or String | — none |
$from | Breakpoint where scaling starts | String | 'sm' |
$to | Breakpoint where scaling stops | String | 'xl' |
Requires
- [variable]
breakpoints - [variable]
breakpoints - [variable]
base-font-size
Used by
fluid-text
@mixin fluid-text($min, $max, $from: 'sm', $to: 'xl') { ... }Description
Shorthand for fluid("font-size", ...).
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$min | Minimum font-size key | Number or String | — none |
$max | Maximum font-size key | Number or String | — none |
$from | — none | String | 'sm' |
$to | — none | String | 'xl' |
Requires
- [mixin]
fluid
fluid-p
@mixin fluid-p($min, $max, $from: 'sm', $to: 'xl') { ... }Description
Shorthand for fluid("padding", ...).
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$min | — none | Number or String | — none |
$max | — none | Number or String | — none |
$from | — none | String | 'sm' |
$to | — none | String | 'xl' |
Requires
- [mixin]
fluid
fluid-px
@mixin fluid-px($min, $max, $from: 'sm', $to: 'xl') { ... }Description
Shorthand for fluid("padding-left/right", ...).
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$min | — none | Number or String | — none |
$max | — none | Number or String | — none |
$from | — none | String | 'sm' |
$to | — none | String | 'xl' |
Requires
fluid-py
@mixin fluid-py($min, $max, $from: 'sm', $to: 'xl') { ... }Description
Shorthand for fluid("padding-top/bottom", ...).
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$min | — none | Number or String | — none |
$max | — none | Number or String | — none |
$from | — none | String | 'sm' |
$to | — none | String | 'xl' |
Requires
fluid-gap
@mixin fluid-gap($min, $max, $from: 'sm', $to: 'xl') { ... }Description
Shorthand for fluid("gap", ...).
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$min | — none | Number or String | — none |
$max | — none | Number or String | — none |
$from | — none | String | 'sm' |
$to | — none | String | 'xl' |
Requires
- [mixin]
fluid
configuration
variables
output-css-vars
$output-css-vars: true !default;Description
Output CSS custom properties (--color-*, --size-*, --text-*, etc.) on :root. Disable if you're using Crayon purely via Sass functions and utility classes.
Type
Bool
layout-columns
$layout-columns: 12 !default;Description
Number of columns for grid-cols-* and col/row-span-* classes.
Type
Number
layout-divisions
$layout-divisions: (2, 3, 4, 5, 6, 12) !default;Description
Denominators used to generate fractional width/height classes (e.g. w-1/3, h-3/4).
Type
List
border-widths
$border-widths: (
"DEFAULT": 1px,
0: 0px,
2: 2px,
4: 4px,
8: 8px,
) !default;Description
Border width scale. "DEFAULT" is used by .border with no suffix.
Type
Map
Used by
- [function]
border-width - [mixin]
divide-x - [mixin]
divide-y
border-radii
$border-radii: (
"none": 0,
"sm": 2px,
"DEFAULT": 4px,
"md": 6px,
"lg": 8px,
"xl": 12px,
"2xl": 16px,
"3xl": 24px,
"full": 9999px,
) !default;Description
Border radius scale. Keys map to .rounded-{key} classes and rounded() function.
Type
Map
Used by
- [function]
rounded
breakpoints
$breakpoints: (
"sm": 640px,
"md": 768px,
"lg": 1024px,
"xl": 1280px,
"xxl": 1536px,
) !default;Description
Named breakpoints for responsive utilities and the screen() mixin. Keys must not start with a digit (CSS class restriction).
Type
Map
Used by
- [mixin]
rounded-range - [mixin]
rounded-t-range - [mixin]
rounded-b-range - [mixin]
rounded-l-range - [mixin]
rounded-r-range - [mixin]
fluid - [mixin]
fluid - [mixin]
container - [mixin]
grid-cols-range - [mixin]
grid-cols-range - [mixin]
grid-rows-range - [mixin]
grid-rows-range - [mixin]
m-range - [mixin]
mx-range - [mixin]
my-range - [mixin]
mt-range - [mixin]
mb-range - [mixin]
ml-range - [mixin]
mr-range - [mixin]
p-range - [mixin]
px-range - [mixin]
py-range - [mixin]
pt-range - [mixin]
pb-range - [mixin]
pl-range - [mixin]
pr-range - [mixin]
screen - [mixin]
screens - [mixin]
show-from - [mixin]
hide-from - [mixin]
show-until - [mixin]
hide-until - [mixin]
size-range - [mixin]
w-range - [mixin]
h-range - [mixin]
gap-range - [mixin]
gap-x-range - [mixin]
gap-y-range - [mixin]
text-size-range - [mixin]
text-weight-range - [mixin]
text-leading-range - [mixin]
text-tracking-range
font-families
$font-families: (
"sans": ( sans-serif),
"serif": ( Georgia, "Times New Roman", serif),
"mono": ( ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace),
) !default;Description
Named font family stacks. The $default-font key is applied to body. Custom fonts should be specified with standard font-face
Type
Map
Used by
- [function]
font-family
default-font
$default-font: "sans" !default;Description
Which key from $font-families to use as the document default.
Type
String
base-font-size
$base-font-size: 16px !default;Description
Base font size used to compute rem values.
Type
Length
Used by
font-sizes
$font-sizes: (
"xs": (0.75, 1rem),
"sm": (0.875, 1.25rem),
"base": (1, 1.5rem),
"lg": (1.125, 1.75rem),
"xl": (1.25, 1.75rem),
"2xl": (1.5, 2rem),
"3xl": (1.875, 2.25rem),
"4xl": (2.25, 2.5rem),
"5xl": (3, 1),
"6xl": (3.75, 1),
"7xl": (4.5, 1),
"8xl": (6, 1),
"9xl": (8, 1),
) !default;Description
Font size scale. Each entry is (multiplier, line-height).
Type
Map
font-weights
$font-weights: (
"thin": 100,
"extralight": 200,
"light": 300,
"normal": 400,
"medium": 500,
"semibold": 600,
"bold": 700,
"extrabold": 800,
"black": 900,
) !default;Description
Font weight scale.
Type
Map
Used by
- [function]
font-weight
letter-spacings
$letter-spacings: (
"tighter": -0.05em,
"tight": -0.025em,
"normal": 0em,
"wide": 0.025em,
"wider": 0.05em,
"widest": 0.1em,
) !default;Description
Letter spacing scale.
Type
Map
Used by
- [function]
tracking
line-heights
$line-heights: (
"none": 1,
"tight": 1.25,
"snug": 1.375,
"normal": 1.5,
"relaxed": 1.625,
"loose": 2,
) !default;Description
Line height scale.
Type
Map
Used by
- [function]
leading
base-size
$base-size: 4px !default;Description
Base unit for the sizing scale. All $sizes entries are multiples of this.
Type
Length
Used by
- [function]
size
sizes
$sizes: (
0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10,
12, 14, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96
) !default;Description
Spacing scale steps. Values are multiplied by $base-size.
Type
List</code> or <code>Map
Used by
- [mixin]
containers - [mixin]
containers
use-tailwind-colors
$use-tailwind-colors: true !default;Description
Include the full Tailwind v3 colour palette by default. Set to false to start with no colours and define your own via $colors.
Type
Bool
convert-colorspace
$convert-colorspace: true !default;Description
Whether to convert colour output to a different colour space.
Type
Bool
Used by
output-colorspace
$output-colorspace: oklch !default;Description
Target colour space for output. Options: srgb, hsl, oklch, oklab, display-p3.
Type
String
use-color-opacity-modifiers
$use-color-opacity-modifiers: true !default;Description
Generate opacity modifier classes for colours (e.g. .bg-red-500\/50). Uses the $opacities map for available stops.
Type
Bool
colors
$colors: () !default;Description
Your custom colours, merged on top of the Tailwind palette when $use-tailwind-colors is true. To replace the palette entirely, set $use-tailwind-colors: false and define all your colours with this.
Type
Map
opacities
$opacities: (
0: 0,
5: 0.05,
10: 0.1,
20: 0.2,
25: 0.25,
30: 0.3,
40: 0.4,
50: 0.5,
60: 0.6,
70: 0.7,
75: 0.75,
80: 0.8,
90: 0.9,
95: 0.95,
100: 1,
) !default;Description
Opacity scale for .opacity-{n} classes and opacity() function.
Type
Map
Used by
decorative
mixins
mask-mesa
@mixin mask-mesa($size: null, $rotate: null, $flip: null) { ... }Description
"They're waiting for you Gordon...in the test chamberrrrrr."
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$size | sets the size | Number or Null | null |
$rotate | degrees to rotate the shape (e.g. | Number or Null | null |
$flip | mirror the shape: | String or Null | null |
Example
.avatar { @include crayon.mask-mesa(16); }
.icon { @include crayon.mask-mesa($rotate: 90); }
.badge { @include crayon.mask-mesa($flip: x); }.avatar
+crayon.mask-mesa(16)Requires
- [function]
size
mask-squircle
@mixin mask-squircle($size: null) { ... }Description
Clip to a smooth square with evenly rounded corners.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$size | sets width and height | Number or Null | null |
Example
.avatar { @include crayon.mask-squircle(12); }.avatar
+crayon.mask-squircle(12)Requires
- [function]
size
mask-swedge
@mixin mask-swedge($size: null, $rotate: null, $flip: null) { ... }Description
Clip to a shape with a sharp top-left corner, large circular arc on the bottom-left, and rounded corners top-right and bottom-right.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$size | sets width and height | Number or Null | null |
$rotate | degrees to rotate the mask (e.g. | Number or Null | null |
$flip | mirror the mask shape: | String or Null | null |
Example
.avatar { @include crayon.mask-swedge(16); }
.icon { @include crayon.mask-swedge($rotate: 180); }
.badge { @include crayon.mask-swedge($flip: x); }.avatar
+crayon.mask-swedge(16)Requires
- [function]
size
mask-pebble
@mixin mask-pebble($size: null, $rotate: null, $flip: null) { ... }Description
Clip to a soft asymmetric pebble shape. Flip x to shift the mass to the top-left instead.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$size | sets width and height | Number or Null | null |
$rotate | degrees to rotate the mask | Number or Null | null |
$flip | mirror the mask shape: | String or Null | null |
Example
.avatar { @include crayon.mask-pebble(12); }
.icon { @include crayon.mask-pebble($flip: x); }
.badge { @include crayon.mask-pebble(12, $rotate: 90, $flip: y); }.avatar
+crayon.mask-pebble(12)Requires
- [function]
size
display
mixins
container
@mixin container($center: true) { ... }Description
Makes element max width the same as the current breakpoint
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$center | Center the container | Bool | true |
Example
.page { @include crayon.container; }
.page-start { @include crayon.container($center: false); }.page
+crayon.container
.page-start
+crayon.container($center: false)Requires
- [variable]
breakpoints
block
@mixin block() { ... }Description
Display an element as a block.
Parameters
None.
inline
@mixin inline() { ... }Description
Display an element inline.
Parameters
None.
inline-block
@mixin inline-block() { ... }Description
Display an element as an inline block.
Parameters
None.
hide
@mixin hide() { ... }Description
Hide an element Alias of hidden.
Parameters
None.
divide
mixins
divide-x
@mixin divide-x($width: "DEFAULT") { ... }Description
Add vertical dividers between an element's children.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$width | : Key from | String or Number | "DEFAULT" |
Example
.columns { @include crayon.divide-x(2); }.columns
+crayon.divide-x(2)Requires
- [variable]
border-widths
divide-y
@mixin divide-y($width: "DEFAULT") { ... }Description
Add horizontal dividers between an element's children.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$width | : Key from | String or Number | "DEFAULT" |
Example
.stack { @include crayon.divide-y(2); }.stack
+crayon.divide-y(2)Requires
- [variable]
border-widths
divide-style
@mixin divide-style($style:) { ... }Description
Set the border style between an element's children.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$style: | Border style (e.g. | String | — none |
Example
.stack { @include crayon.divide-style(dashed); }.stack
+crayon.divide-style(dashed)divide-color
@mixin divide-color($name:) { ... }Description
Set the border colour between an element's children.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name: | Colour by name | String | — none |
Example
.stack { @include crayon.divide-color("slate-200"); }.stack
+crayon.divide-color("slate-200")Requires
flexbox
mixins
flex
@mixin flex() { ... }Description
Create a flex container.
Parameters
None.
inline-flex
@mixin inline-flex() { ... }Description
Create an inline flex container.
Parameters
None.
flex-row
@mixin flex-row() { ... }Description
Order flex items horizontally.
Parameters
None.
Used by
- [mixin]
f-row
flex-col
@mixin flex-col() { ... }Description
Order flex items vertically.
Parameters
None.
Used by
- [mixin]
f-col
flex-row-reverse
@mixin flex-row-reverse() { ... }Description
Lay out flex items horizontally in reverse order.
Parameters
None.
flex-col-reverse
@mixin flex-col-reverse() { ... }Description
Lay out flex items vertically in reverse order.
Parameters
None.
f-row
@mixin f-row() { ... }Description
Alias for flex-row.
Parameters
None.
Requires
- [mixin]
flex-row
f-col
@mixin f-col() { ... }Description
Alias for flex-col.
Parameters
None.
Requires
- [mixin]
flex-col
grow
@mixin grow() { ... }Description
Allow a flex item to grow and fill available space.
Parameters
None.
no-grow
@mixin no-grow() { ... }Description
Prevent a flex item from growing.
Parameters
None.
shrink
@mixin shrink() { ... }Description
Allow a flex item to shrink when necessary.
Parameters
None.
no-shrink
@mixin no-shrink() { ... }Description
Prevent a flex item from shrinking.
Parameters
None.
flex-wrap
@mixin flex-wrap() { ... }Description
Allow flex items to wrap onto multiple lines.
Parameters
None.
flex-nowrap
@mixin flex-nowrap() { ... }Description
Keep flex items on a single line.
Parameters
None.
flex-wrap-reverse
@mixin flex-wrap-reverse() { ... }Description
Wrap flex items onto multiple lines in reverse order.
Parameters
None.
justify-start
@mixin justify-start() { ... }Description
Pack flex items at the start.
Parameters
None.
justify-end
@mixin justify-end() { ... }Description
Pack flex items at the end.
Parameters
None.
justify-center
@mixin justify-center() { ... }Description
Center flex items.
Parameters
None.
justify-between
@mixin justify-between() { ... }Description
Distribute flex items with equal space between.
Parameters
None.
justify-around
@mixin justify-around() { ... }Description
Distribute flex items with equal space around them.
Parameters
None.
justify-evenly
@mixin justify-evenly() { ... }Description
Distribute flex items with equal space between and around them.
Parameters
None.
items-start
@mixin items-start() { ... }Description
Align flex items at the start.
Parameters
None.
items-end
@mixin items-end() { ... }Description
Align flex items at the end.
Parameters
None.
items-center
@mixin items-center() { ... }Description
Center flex items along.
Parameters
None.
items-baseline
@mixin items-baseline() { ... }Description
Align flex items along their baselines.
Parameters
None.
items-stretch
@mixin items-stretch() { ... }Description
Stretch flex items.
Parameters
None.
self-auto
@mixin self-auto() { ... }Description
Use the flex container's align-items value for an item.
Parameters
None.
self-start
@mixin self-start() { ... }Description
Align a flex item at the start of the cross axis.
Parameters
None.
self-end
@mixin self-end() { ... }Description
Align a flex item at the end of the cross axis.
Parameters
None.
self-center
@mixin self-center() { ... }Description
Center a flex item along the cross axis.
Parameters
None.
self-baseline
@mixin self-baseline() { ... }Description
Align a flex item along the container's baseline.
Parameters
None.
self-stretch
@mixin self-stretch() { ... }Description
Stretch a flex item across the cross axis.
Parameters
None.
content-start
@mixin content-start() { ... }Description
Pack flex lines at the start of the cross axis.
Parameters
None.
content-end
@mixin content-end() { ... }Description
Pack flex lines at the end of the cross axis.
Parameters
None.
content-center
@mixin content-center() { ... }Description
Center flex lines along the cross axis.
Parameters
None.
content-between
@mixin content-between() { ... }Description
Distribute flex lines with equal space between them.
Parameters
None.
content-around
@mixin content-around() { ... }Description
Distribute flex lines with equal space around them.
Parameters
None.
content-evenly
@mixin content-evenly() { ... }Description
Distribute flex lines with equal space between and around them.
Parameters
None.
order
@mixin order($value) { ... }Description
Set the order of a flex item.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$value | Position in the flex order, accepts an arbitrary value | Number | — none |
Used by
- [mixin]
order-first - [mixin]
order-last
order-first
@mixin order-first() { ... }Description
Place a flex item before the others.
Parameters
None.
Requires
- [mixin]
order
order-last
@mixin order-last() { ... }Description
Place a flex item after all the others.
Parameters
None.
Requires
- [mixin]
order
gap
mixins
gap
@mixin gap($key) { ... }Description
Add space between rows and columns.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
gap-x
@mixin gap-x($key) { ... }Description
Add space between columns.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
gap-y
@mixin gap-y($key) { ... }Description
Add space between rows.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
grid
mixins
grid
@mixin grid() { ... }Description
Create a grid container.
Parameters
None.
grid-cols
@mixin grid-cols($num) { ... }Description
Split a grid into columns.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$num | Number of columns | Number | — none |
grid-cols-none
@mixin grid-cols-none() { ... }Description
Remove grid column template.
Parameters
None.
grid-rows
@mixin grid-rows($num) { ... }Description
Split a grid into rows.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$num | Number of rows | Number | — none |
grid-rows-none
@mixin grid-rows-none() { ... }Description
Remove any grid row template.
Parameters
None.
col-span
@mixin col-span($num) { ... }Description
Make an item span a number of columns.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$num | Number of columns to span | Number | — none |
col-span-full
@mixin col-span-full() { ... }Description
Make an item span every column.
Parameters
None.
row-span
@mixin row-span($num) { ... }Description
Make an item span a number of rows.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$num | Number of rows to span | Number | — none |
row-span-full
@mixin row-span-full() { ... }Description
Make an item span every row.
Parameters
None.
auto-cols-auto
@mixin auto-cols-auto() { ... }Description
Size automatically created grid columns according to their contents.
Parameters
None.
auto-cols-min
@mixin auto-cols-min() { ... }Description
Size automatically created grid columns to their minimum content width.
Parameters
None.
auto-cols-max
@mixin auto-cols-max() { ... }Description
Size automatically created grid columns to their maximum content width.
Parameters
None.
auto-cols-fr
@mixin auto-cols-fr() { ... }Description
Give automatically created grid columns an equal share of available space.
Parameters
None.
auto-rows-auto
@mixin auto-rows-auto() { ... }Description
Size automatically created grid rows according to their contents.
Parameters
None.
auto-rows-min
@mixin auto-rows-min() { ... }Description
Size automatically created grid rows to their minimum content height.
Parameters
None.
auto-rows-max
@mixin auto-rows-max() { ... }Description
Size automatically created grid rows to their maximum content height.
Parameters
None.
auto-rows-fr
@mixin auto-rows-fr() { ... }Description
Give automatically created grid rows an equal share of available space.
Parameters
None.
grid-flow-row
@mixin grid-flow-row() { ... }Description
Add new grid items by row.
Parameters
None.
grid-flow-col
@mixin grid-flow-col() { ... }Description
Add new grid items by column.
Parameters
None.
grid-flow-dense
@mixin grid-flow-dense() { ... }Description
Fill gaps with smaller grid items when they fit.
Parameters
None.
grid-flow-row-dense
@mixin grid-flow-row-dense() { ... }Description
Add new grid items by row and backfill gaps where possible.
Parameters
None.
grid-flow-col-dense
@mixin grid-flow-col-dense() { ... }Description
Add new grid items by column and backfill gaps where possible.
Parameters
None.
grid-cols-range
@mixin grid-cols-range($base, $breakpoints...) { ... }Description
Change the number of grid columns at different breakpoints.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | Number of columns by default | Number | — none |
$breakpoints | Keyword args mapping breakpoints to column counts | Arglist | — none |
Example
.gallery { @include crayon.grid-cols-range(1, $md: 2, $lg: 4); }.gallery
+crayon.grid-cols-range(1, $md: 2, $lg: 4)Requires
- [variable]
breakpoints - [variable]
breakpoints
grid-rows-range
@mixin grid-rows-range($base, $breakpoints...) { ... }Description
Change the number of grid rows at different breakpoints.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | Number of rows by default | Number | — none |
$breakpoints | Keyword args mapping breakpoints to row counts | Arglist | — none |
Example
.dashboard { @include crayon.grid-rows-range(1, $md: 2, $lg: 3); }.dashboard
+crayon.grid-rows-range(1, $md: 2, $lg: 3)Requires
- [variable]
breakpoints - [variable]
breakpoints
height
mixins
h
@mixin h($key) { ... }Description
Set the height from the size scale, a breakpoint, or a viewport keyword.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key, breakpoint name, | Number or String | — none |
Example
.avatar { @include crayon.h(12); }.avatar
+crayon.h(12)min-h
@mixin min-h($key) { ... }Description
Set the minimum height from the size scale, a breakpoint, or a viewport keyword.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key, breakpoint name, | Number or String | — none |
max-h
@mixin max-h($key) { ... }Description
Set the maximum height from the size scale, a breakpoint, or a viewport keyword.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key, breakpoint name, | Number or String | — none |
h-full
@mixin h-full() { ... }Description
Fill the available height.
Parameters
None.
h-screen
@mixin h-screen() { ... }Description
Match the viewport height.
Parameters
None.
h-auto
@mixin h-auto() { ... }Description
Let the browser choose the height.
Parameters
None.
h-fit
@mixin h-fit() { ... }Description
Fit the height to its content.
Parameters
None.
h-min
@mixin h-min() { ... }Description
Use the smallest possible content height.
Parameters
None.
h-max
@mixin h-max() { ... }Description
Use the largest needed content height.
Parameters
None.
min-h-full
@mixin min-h-full() { ... }Description
Fill the available minimum height.
Parameters
None.
max-h-full
@mixin max-h-full() { ... }Description
Fill the available maximum height.
Parameters
None.
max-h-none
@mixin max-h-none() { ... }Description
Remove any maximum height.
Parameters
None.
margin
mixins
m
@mixin m($key, $negative: false) { ... }Description
Add margin on every side.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
$negative | Use a negative margin | Bool | false |
Requires
- [function]
size
Used by
- [mixin]
minus-m
mt
@mixin mt($key, $negative: false) { ... }Description
Add margin to the top.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
$negative | Use a negative margin | Bool | false |
Requires
- [function]
size
Used by
- [mixin]
minus-mt
mb
@mixin mb($key, $negative: false) { ... }Description
Add margin to the bottom.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
$negative | Use a negative margin | Bool | false |
Requires
- [function]
size
Used by
- [mixin]
minus-mb
ml
@mixin ml($key, $negative: false) { ... }Description
Add margin to the left.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
$negative | Use a negative margin | Bool | false |
Requires
- [function]
size
Used by
- [mixin]
minus-ml
mr
@mixin mr($key, $negative: false) { ... }Description
Add margin on the right.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
$negative | Use a negative margin | Bool | false |
Requires
- [function]
size
Used by
- [mixin]
minus-mr
mx
@mixin mx($key, $negative: false) { ... }Description
Add margin left and right.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
$negative | Use a negative margin | Bool | false |
Requires
- [function]
size
Used by
- [mixin]
minus-mx
my
@mixin my($key, $negative: false) { ... }Description
Add margin to the top and bottom.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
$negative | Use a negative margin | Bool | false |
Requires
- [function]
size
Used by
- [mixin]
minus-my
mx-auto
@mixin mx-auto() { ... }Description
Center an item horizontally with auto margins.
Parameters
None.
minus-m
@mixin minus-m($key) { ... }Description
Add negative margin on all sides.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [mixin]
m
minus-mt
@mixin minus-mt($key) { ... }Description
Add negative margin to the top.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [mixin]
mt
minus-mb
@mixin minus-mb($key) { ... }Description
Add negative margin to the bottom.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [mixin]
mb
minus-ml
@mixin minus-ml($key) { ... }Description
Add negative margin left.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [mixin]
ml
minus-mr
@mixin minus-mr($key) { ... }Description
Add negative margin right.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [mixin]
mr
minus-mx
@mixin minus-mx($key) { ... }Description
Add negative margin left and right.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [mixin]
mx
minus-my
@mixin minus-my($key) { ... }Description
Add negative margin top and bottom.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [mixin]
my
m-auto
@mixin m-auto() { ... }Description
Add auto margin on every side.
Parameters
None.
my-auto
@mixin my-auto() { ... }Description
Add auto margin to the top and bottom.
Parameters
None.
mt-auto
@mixin mt-auto() { ... }Description
Add auto margin to the top.
Parameters
None.
mb-auto
@mixin mb-auto() { ... }Description
Add auto margin to the bottom.
Parameters
None.
ml-auto
@mixin ml-auto() { ... }Description
Add auto margin to the left.
Parameters
None.
mr-auto
@mixin mr-auto() { ... }Description
Add auto margin to the right.
Parameters
None.
m-range
@mixin m-range($base, $breakpoint-range...) { ... }Description
Responsive margin across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.card { @include crayon.m-range(2, $md: 4, $lg: 6); }.card
+crayon.m-range(2, $md: 4, $lg: 6)Requires
- [function]
size - [function]
size - [variable]
breakpoints
mx-range
@mixin mx-range($base, $breakpoint-range...) { ... }Description
Responsive horizontal margin across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.container { @include crayon.mx-range(4, $md: 8, $lg: 12); }.container
+crayon.mx-range(4, $md: 8, $lg: 12)Requires
- [function]
size - [function]
size - [function]
size - [function]
size - [variable]
breakpoints
my-range
@mixin my-range($base, $breakpoint-range...) { ... }Description
Responsive vertical margin across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.section { @include crayon.my-range(6, $md: 10, $lg: 16); }.section
+crayon.my-range(6, $md: 10, $lg: 16)Requires
- [function]
size - [function]
size - [function]
size - [function]
size - [variable]
breakpoints
mt-range
@mixin mt-range($base, $breakpoint-range...) { ... }Description
Responsive margin-top across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.section { @include crayon.mt-range(6, $md: 10, $lg: 16); }.section
+crayon.mt-range(6, $md: 10, $lg: 16)Requires
- [function]
size - [function]
size - [variable]
breakpoints
mb-range
@mixin mb-range($base, $breakpoint-range...) { ... }Description
Responsive margin-bottom across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.section { @include crayon.mb-range(6, $md: 10, $lg: 16); }.section
+crayon.mb-range(6, $md: 10, $lg: 16)Requires
- [function]
size - [function]
size - [variable]
breakpoints
ml-range
@mixin ml-range($base, $breakpoint-range...) { ... }Description
Responsive margin-left across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.card { @include crayon.ml-range(4, $md: 6, $lg: 8); }.card
+crayon.ml-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [variable]
breakpoints
mr-range
@mixin mr-range($base, $breakpoint-range...) { ... }Description
Responsive margin-right across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.card { @include crayon.mr-range(4, $md: 6, $lg: 8); }.card
+crayon.mr-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [variable]
breakpoints
padding
mixins
p
@mixin p($key) { ... }Description
Add padding on every side.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
pt
@mixin pt($key) { ... }Description
Add padding to the top.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
pb
@mixin pb($key) { ... }Description
Add padding to the bottom.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
pl
@mixin pl($key) { ... }Description
Add padding to the left.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
pr
@mixin pr($key) { ... }Description
Add padding to the right.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
- [function]
size
px
@mixin px($key) { ... }Description
Add padding to the left and right.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
py
@mixin py($key) { ... }Description
Add padding to the top and bottom.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key | Number | — none |
Requires
p-range
@mixin p-range($base, $breakpoint-range...) { ... }Description
Responsive padding. Base value + overrides at named breakpoints.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | Size key for default | Number | — none |
$breakpoint-range | Keyword args mapping breakpoint → size key | Arglist | — none |
Example
.hero { @include crayon.p-range(4, $md: 8, $lg: 12); }.hero
+crayon.p-range(4, $md: 8, $lg: 12)Requires
- [function]
size - [function]
size - [variable]
breakpoints
px-range
@mixin px-range($base, $breakpoint-range...) { ... }Description
Responsive horizontal padding across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.card { @include crayon.px-range(4, $md: 6, $lg: 8); }.card
+crayon.px-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [function]
size - [function]
size - [variable]
breakpoints
py-range
@mixin py-range($base, $breakpoint-range...) { ... }Description
Responsive vertical padding across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.section { @include crayon.py-range(6, $md: 10, $lg: 16); }.section
+crayon.py-range(6, $md: 10, $lg: 16)Requires
- [function]
size - [function]
size - [function]
size - [function]
size - [variable]
breakpoints
pt-range
@mixin pt-range($base, $breakpoint-range...) { ... }Description
Responsive padding-top across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.section { @include crayon.pt-range(6, $md: 10, $lg: 16); }.section
+crayon.pt-range(6, $md: 10, $lg: 16)Requires
- [function]
size - [function]
size - [variable]
breakpoints
pb-range
@mixin pb-range($base, $breakpoint-range...) { ... }Description
Responsive padding-bottom across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.section { @include crayon.pb-range(6, $md: 10, $lg: 16); }.section
+crayon.pb-range(6, $md: 10, $lg: 16)Requires
- [function]
size - [function]
size - [variable]
breakpoints
pl-range
@mixin pl-range($base, $breakpoint-range...) { ... }Description
Responsive padding-left across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.card { @include crayon.pl-range(4, $md: 6, $lg: 8); }.card
+crayon.pl-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [variable]
breakpoints
pr-range
@mixin pr-range($base, $breakpoint-range...) { ... }Description
Responsive padding-right across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.card { @include crayon.pr-range(4, $md: 6, $lg: 8); }.card
+crayon.pr-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [variable]
breakpoints
responsive
mixins
screen
@mixin screen($name) { ... }Description
Wrap content in a min-width media query for a named breakpoint.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [variable]
breakpoints
screens
@mixin screens($names...) { ... }Description
Wrap content in multiple min-width media queries at once.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$names | One or more breakpoint keys | Arglist | — none |
Requires
- [variable]
breakpoints
containers
this is fluff, just use regular container queries
@mixin containers($sizes...) { ... }Description
Wrap content in container query breakpoints using raw size values. Pass $name as a keyword argument for named containers.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$sizes | One or more min-width values (e.g. | Arglist | — none |
Requires
show-from
@mixin show-from($name) { ... }Description
Hidden by default, visible at breakpoint and above.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [variable]
breakpoints
hide-from
@mixin hide-from($name) { ... }Description
Visible by default, hidden at breakpoint and above.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [variable]
breakpoints
show-until
@mixin show-until($name) { ... }Description
Alias for hide-from. Visible by default, hidden at breakpoint and above.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [variable]
breakpoints
hide-until
@mixin hide-until($name) { ... }Description
Alias for show-from. Hidden by default, visible at breakpoint and above.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [variable]
breakpoints
portrait
@mixin portrait() { ... }Description
Wrap content in orientation: portrait.
Parameters
None.
landscape
@mixin landscape() { ... }Description
Wrap content in orientation: landscape.
Parameters
None.
dark
@mixin dark() { ... }Description
Wrap content in prefers-color-scheme: dark. @content
Parameters
None.
sass utilities
functions
px-to-rem
@function px-to-rem($px) { ... }Description
Convert a px value to rem using $base-font-size.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$px | Value in px | Length | — none |
Returns
Length —Value in rem
Requires
- [variable]
base-font-size
Used by
size
functions
size
@function size($key) { ... }Description
Look up a spacing value from $sizes, returned in rem. Falls back to $base-size * $key for keys not in the map.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Scale step (e.g. | Number | — none |
Returns
LengthRequires
Used by
- [mixin]
vstack - [mixin]
hstack - [mixin]
cluster - [mixin]
box - [mixin]
mask-mesa - [mixin]
mask-squircle - [mixin]
mask-swedge - [mixin]
mask-pebble - [mixin]
gap - [mixin]
gap-x - [mixin]
gap-y - [mixin]
m - [mixin]
mt - [mixin]
mb - [mixin]
ml - [mixin]
mr - [mixin]
mx - [mixin]
my - [mixin]
m-range - [mixin]
m-range - [mixin]
mx-range - [mixin]
mx-range - [mixin]
mx-range - [mixin]
mx-range - [mixin]
my-range - [mixin]
my-range - [mixin]
my-range - [mixin]
my-range - [mixin]
mt-range - [mixin]
mt-range - [mixin]
mb-range - [mixin]
mb-range - [mixin]
ml-range - [mixin]
ml-range - [mixin]
mr-range - [mixin]
mr-range - [mixin]
p - [mixin]
pt - [mixin]
pb - [mixin]
pl - [mixin]
pr - [mixin]
px - [mixin]
px - [mixin]
py - [mixin]
py - [mixin]
p-range - [mixin]
p-range - [mixin]
px-range - [mixin]
px-range - [mixin]
px-range - [mixin]
px-range - [mixin]
py-range - [mixin]
py-range - [mixin]
py-range - [mixin]
py-range - [mixin]
pt-range - [mixin]
pt-range - [mixin]
pb-range - [mixin]
pb-range - [mixin]
pl-range - [mixin]
pl-range - [mixin]
pr-range - [mixin]
pr-range - [mixin]
size-range - [mixin]
size-range - [mixin]
size-range - [mixin]
w-range - [mixin]
w-range - [mixin]
h-range - [mixin]
h-range - [mixin]
gap-range - [mixin]
gap-range - [mixin]
gap-x-range - [mixin]
gap-x-range - [mixin]
gap-y-range - [mixin]
gap-y-range
mixins
size
@mixin size($key) { ... }Description
Set both width and height.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key or breakpoint name | Number or String | — none |
min-size
@mixin min-size($key) { ... }Description
Set both min-width and min-height.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key or breakpoint name | Number or String | — none |
max-size
@mixin max-size($key) { ... }Description
Set both max-width and max-height.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key or breakpoint name | Number or String | — none |
size-full
@mixin size-full() { ... }Description
Fill the available width and height.
Parameters
None.
size-auto
@mixin size-auto() { ... }Description
Let the browser choose the width and height.
Parameters
None.
sizing
mixins
size-range
@mixin size-range($base, $breakpoint-range...) { ... }Description
Responsive width + height across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.avatar { @include crayon.size-range(10, $md: 12, $lg: 16); }.avatar
+crayon.size-range(10, $md: 12, $lg: 16)Requires
- [function]
size - [function]
size - [function]
size - [variable]
breakpoints
w-range
@mixin w-range($base, $breakpoint-range...) { ... }Description
Responsive width across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.panel { @include crayon.w-range(64, $md: 80, $lg: 96); }.panel
+crayon.w-range(64, $md: 80, $lg: 96)Requires
- [function]
size - [function]
size - [variable]
breakpoints
h-range
@mixin h-range($base, $breakpoint-range...) { ... }Description
Responsive height across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.hero { @include crayon.h-range(64, $md: 80, $lg: 96); }.hero
+crayon.h-range(64, $md: 80, $lg: 96)Requires
- [function]
size - [function]
size - [variable]
breakpoints
gap-range
@mixin gap-range($base, $breakpoint-range...) { ... }Description
Responsive gap across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.grid { @include crayon.gap-range(4, $md: 6, $lg: 8); }.grid
+crayon.gap-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [variable]
breakpoints
gap-x-range
@mixin gap-x-range($base, $breakpoint-range...) { ... }Description
Responsive column-gap across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.grid { @include crayon.gap-x-range(4, $md: 6, $lg: 8); }.grid
+crayon.gap-x-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [variable]
breakpoints
gap-y-range
@mixin gap-y-range($base, $breakpoint-range...) { ... }Description
Responsive row-gap across breakpoint ranges.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | Number | — none |
$breakpoint-range | — none | Arglist | — none |
Example
.grid { @include crayon.gap-y-range(4, $md: 6, $lg: 8); }.grid
+crayon.gap-y-range(4, $md: 6, $lg: 8)Requires
- [function]
size - [function]
size - [variable]
breakpoints
state
mixins
hover
@mixin hover() { ... }Description
Wrap content in :hover. @content
Parameters
None.
focus
@mixin focus() { ... }Description
Wrap content in :focus. @content
Parameters
None.
focus-visible
@mixin focus-visible() { ... }Description
Wrap content in :focus-visible.
Parameters
None.
Example
.button {
@include crayon.focus-visible {
outline: 2px solid currentColor;
}
}.button
+crayon.focus-visible
outline: 2px solid currentColorfocus-within
@mixin focus-within() { ... }Description
Wrap content in :focus-within.
Parameters
None.
Example
.field {
@include crayon.focus-within {
border-color: currentColor;
}
}.field
+crayon.focus-within
border-color: currentColoractive
@mixin active() { ... }Description
Wrap content in :active. @content
Parameters
None.
enabled
@mixin enabled() { ... }Description
Wrap content in :enabled.
Parameters
None.
Example
.button {
@include crayon.enabled {
cursor: pointer;
}
}.button
+crayon.enabled
cursor: pointerdisabled
@mixin disabled() { ... }Description
Wrap content in :disabled.
Parameters
None.
Example
.button {
@include crayon.disabled {
cursor: not-allowed;
}
}.button
+crayon.disabled
cursor: not-allowedchecked
@mixin checked() { ... }Description
Wrap content in :checked.
Parameters
None.
Example
.checkbox {
@include crayon.checked {
accent-color: currentColor;
}
}.checkbox
+crayon.checked
accent-color: currentColortypography
functions
font-size
@function font-size($name) { ... }Description
Look up a font size from $font-sizes, returned in rem.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Returns
LengthRequires
- [function]
px-to-rem
Used by
font-weight
@function font-weight($name) { ... }Description
Look up a font weight from $font-weights.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Returns
NumberRequires
- [variable]
font-weights
Used by
- [mixin]
font - [mixin]
font-weight
font-family
@function font-family($name) { ... }Description
Look up a font family stack from $font-families.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Returns
ListRequires
- [variable]
font-families
Used by
- [mixin]
font-family
tracking
@function tracking($name) { ... }Description
Look up a letter spacing from $letter-spacings.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Returns
LengthRequires
- [variable]
letter-spacings
Used by
- [mixin]
tracking
leading
@function leading($name) { ... }Description
Look up a line height from $line-heights.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Returns
NumberRequires
- [variable]
line-heights
Used by
- [mixin]
leading
mixins
text
@mixin text($name) { ... }Description
Set font-size and line-height from the font size scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
font-size
Used by
- [mixin]
text-size-range - [mixin]
text-size-range
font
@mixin font($name) { ... }Description
Set font-weight from the font weight scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
font-weight
Used by
- [mixin]
text-weight-range - [mixin]
text-weight-range
font-weight
@mixin font-weight($name) { ... }Description
Set font-weight from the font weight scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
font-weight
font-size
@mixin font-size($name) { ... }Description
Set font-size and line-height from the font size scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
font-size
font-family
@mixin font-family($name) { ... }Description
Set font-family from the font family map.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
font-family
tracking
@mixin tracking($name) { ... }Description
Set letter-spacing from the letter spacing scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
tracking
Used by
- [mixin]
text-tracking-range - [mixin]
text-tracking-range
leading
@mixin leading($name) { ... }Description
Set line-height from the line height scale.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$name | Key from | String | — none |
Requires
- [function]
leading
Used by
- [mixin]
text-leading-range - [mixin]
text-leading-range
italic
@mixin italic() { ... }Description
Set font-style: italic.
Parameters
None.
not-italic
@mixin not-italic() { ... }Description
Set font-style: normal.
Parameters
None.
text-size-range
@mixin text-size-range($base, $responsive...) { ... }Description
Responsive font-size + line-height. Base value + overrides at named breakpoints.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | Font size key for default | String | — none |
$responsive | Keyword args mapping breakpoint → font size key | Arglist | — none |
Requires
- [mixin]
text - [mixin]
text - [variable]
breakpoints
text-weight-range
@mixin text-weight-range($base, $responsive...) { ... }Description
Responsive font-weight.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | String | — none |
$responsive | — none | Arglist | — none |
Requires
- [mixin]
font - [mixin]
font - [variable]
breakpoints
text-leading-range
@mixin text-leading-range($base, $responsive...) { ... }Description
Responsive line-height.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | String | — none |
$responsive | — none | Arglist | — none |
Requires
- [mixin]
leading - [mixin]
leading - [variable]
breakpoints
text-tracking-range
@mixin text-tracking-range($base, $responsive...) { ... }Description
Responsive letter-spacing.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$base | — none | String | — none |
$responsive | — none | Arglist | — none |
Requires
- [mixin]
tracking - [mixin]
tracking - [variable]
breakpoints
width
mixins
w
@mixin w($key) { ... }Description
Set the width from the size scale, a breakpoint, or a viewport keyword.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key, breakpoint name, | Number or String | — none |
Example
.sidebar { @include crayon.w(64); }.sidebar
+crayon.w(64)min-w
@mixin min-w($key) { ... }Description
Set the minimum width from the size scale, a breakpoint, or a viewport keyword.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key, breakpoint name, | Number or String | — none |
max-w
@mixin max-w($key) { ... }Description
Set the maximum width from the size scale, a breakpoint, or a viewport keyword.
Parameters
| parameter Name | parameter Description | parameter Type | parameter Default value |
|---|---|---|---|
$key | Size scale key, breakpoint name, | Number or String | — none |
w-full
@mixin w-full() { ... }Description
Fill the available width.
Parameters
None.
w-screen
@mixin w-screen() { ... }Description
Match the viewport width.
Parameters
None.
w-auto
@mixin w-auto() { ... }Description
Let the browser choose the width.
Parameters
None.
w-fit
@mixin w-fit() { ... }Description
Fit the width to its content.
Parameters
None.
w-min
@mixin w-min() { ... }Description
Use the smallest possible content width.
Parameters
None.
w-max
@mixin w-max() { ... }Description
Use the largest needed content width.
Parameters
None.
min-w-full
@mixin min-w-full() { ... }Description
Fill the available minimum width.
Parameters
None.
min-w-min
@mixin min-w-min() { ... }Description
Use the smallest possible content width as the minimum width.
Parameters
None.
min-w-max
@mixin min-w-max() { ... }Description
Use the largest needed content width as the minimum width.
Parameters
None.
min-w-fit
@mixin min-w-fit() { ... }Description
Fit the minimum width to its content.
Parameters
None.
max-w-full
@mixin max-w-full() { ... }Description
Fill the available maximum width.
Parameters
None.
max-w-none
@mixin max-w-none() { ... }Description
Remove any maximum width.
Parameters
None.
max-w-min
@mixin max-w-min() { ... }Description
Use the smallest possible content width as the maximum width.
Parameters
None.
max-w-max
@mixin max-w-max() { ... }Description
Use the largest needed content width as the maximum width.
Parameters
None.
max-w-fit
@mixin max-w-fit() { ... }Description
Fit the maximum width to its content.
Parameters
None.