A strong, independent CSS Framework. Only 2.7KB minified & gzipped.
npm install cutestrap
(Release Candidate)
Cutestrap is a progressive CSS Framework built with modern techniques and an eye towards the future with a simple API and robust customization options.
Form controls are unified in both their display and in their semantic markup. Because they are modified using only CSS, accessibility doesn't suffer.
A default button is applied with the .button
class.
Popsicle modifiers can be used for different button variations.
Link
Complete list of modifiers are available in the Buttons Documentation
The default grid creates equal width columns for every child.
Column
Column
Column
Class | Effect |
---|---|
.grid |
Grid will display at all screen sizes |
.grid.-medium |
Grid will start at 45rem |
.grid.-large |
Grid will start at 80rem |
Columns can be fine tuned with the `--columns` custom property by setting it to the number of desired columns
Column
Column
Column
Column
Column
Column
Wrappers are classes that have a max-width and padding. The size of the wrapper, determines max-width and the padding.
Class | Effect |
---|---|
.wrapper.-thin |
Max width of 45rem with top/bottom padding equal to the baseline. |
.wrapper |
Max width of 60rem with top/bottom padding of twice the baseline. |
.wrapper.-wide |
Max width of 80rem with top/bottom padding of three times the baseline. |
All typography and base styles are set to use a Baseline Grid to provide
consistent Vertical Rhythm. The foundation of this is the --rhythm
CSS Custom
Property. All typography hinges on this single variable. If you want to
customize the baseline grid, this is the single variable you will change.
Paragraph
Preformatted
Blockquote
Table Header | Table Header |
---|---|
Table Cell | Table Cell |
Class | Effect |
---|---|
.disabled |
Disables pointer events and lowers the opacity |
.clearfix |
Force an element to self clear its children |
.f-none |
Set the float property to none |
.f-left |
Set the float property to left |
.f-right |
Set the float property to right |
.ta-left |
Left align the text |
.ta-center |
Center align the text |
.ta-right |
Right align the text |
.fw-light |
Light (300) font weight |
.fw-normal |
Normal (400) font weight |
.fw-semibold |
Semibold (500) font weight |
.fw-bold |
Bold (600) font weight |
.fs-small |
Small font size |
.fs-base |
Default font size |
.fs-large |
Large font size |
.m-zero |
No margins |
.mt-zero |
No top margin |
.mb-zero |
No bottom margin |
Cutestrap is supported by modern browsers with a global market share of 85% (Chrome + Firefox + Edge + Safari + Opera), but you should cross-reference caniuse with your user base to determine how much and where you should progressively enhance your project.
The two constraints for browser support are Custom Properties and CSS Grid.
If you notice something is broken or would like to request a feature, please open an issue on Github. You can also fork the repo and open pull requests, just check the README for guidelines.
If you want to chat, Shoot me an email.