Basic CSS boilerplate for websites by any³. Visit the documentation for information on usage.
Either link in HTML:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/any3cubed/anycubed-styles@main/anycubed-styles.min.css"/>
or import in CSS:
@import url("https://cdn.jsdelivr.net/gh/any3cubed/anycubed-styles@main/anycubed-styles.min.css");
or download from the repo.
All colors, spacing, and typography are controlled by CSS variables. You can override them in your own
CSS file or <style> block. See the documentation for a full list of
variables and their default values.
Paragraph text. The quick brown fox jumps over the lazy dog. Inter is the default font alongside
your system's default monospace font. By default paragraphs are limited to 90 characters
per line.
A second paragraph to demonstrate p + p spacing. Adjacent paragraphs have a top margin.
Small tag — uses --fs-xs and muted color.
Here is inline code, a Keyboard Shortcut, and below is a code block:
// Pre-formatted code block
function greet(name) {
return `Hello, ${name}!`;
}
Lorem ipsum is a dummy or placeholder text commonly used in graphic design, publishing, and web development. It is typically a corrupted version of De finibus bonorum et malorum, a 1st-century BC text by the Roman statesman and philosopher Cicero, with words altered, added, and removed to make it nonsensical and improper Latin.
— Wikipedia
smalltag used here.
Apply the .panel class to a container to give it a distinct background and border. This
section is a panel.
This is a nested panel.
figure element.
| Name | Role | Status |
|---|---|---|
| Alice | Engineer | Active |
| Bob | Designer | Active |
| Carol | Manager | Inactive |
See special inputs in the documentation for usage and examples.
The multi number input element starts with a .m-num container, which should
contain multiple number inputs.
Toggle switches are checkbox inputs with the .toggle class.
Links can also be buttons with the.btnclass. Add theoutlineclass for an outline style.
.borderAdds var(--border) to any element.
This text has the .border class. Note that padding is added here for visibility;
.border does not add padding by default.
.mutedDesigned to be used with elements in a disabled/muted state. Note that .muted does not
affect interactivity.
Muted text
Colors auto-switch between light and dark modes unless you use the specific light/dark CSS file.