Installing Tidgrid CSS Library: CDN, npm, and SCSS
Add Tidgrid to your project via CDN link, npm install, SCSS import, or build from source. Includes setup steps for all environments and a production CSS tip.
Use this file to discover all available pages before exploring further.
Tidgrid is available through multiple installation paths depending on how your project is structured. For a quick prototype you can link the CDN stylesheet in seconds. For projects with a SCSS build pipeline you can import individual modules and configure every variable at compile time. You can also clone and build the source directly if you need the absolute latest unreleased changes.
Tidgrid is in early alpha (v0.1.0-alpha.2). The CDN URL and package API may change between releases. Pin your version explicitly in production.
The fastest way to try Tidgrid is to drop a <link> tag into your HTML document. This delivers the full pre-built stylesheet from jsDelivr with no tooling required.
1
Add the stylesheet link
Paste the following tag inside the <head> of your HTML file:
The CDN build includes every generated utility class. This is ideal for development and prototyping but should not be shipped to production as-is. See the production tip below.
If your project already compiles SCSS, import Tidgrid directly into your stylesheet. This is the recommended approach for any project that benefits from customization, as it lets you override SCSS variables at import time.
To include only what you need, import sub-modules individually:
// Grid system only (rows, cells, gaps, positioning)@use 'tidgrid/src/grid';// Layout helpers only (container, section)@use 'tidgrid/src/layout';
Importing sub-modules skips the Tidiness CSS reset found in tidgrid/src/tidiness. If you want the reset without the layout helpers, import tidgrid/src/tidiness on its own.
To pass configuration variables, use SCSS @use ... with (). See Customization for a full reference of available variables.
@use 'tidgrid/src/index' with ( $syntax: dashes, $use-namespace: false);
Tidgrid generates utility classes for every combination of property, value, and breakpoint — including many you won’t use in a given project. Before deploying to production, use a tool like PurgeCSS to strip unused rules and dramatically reduce the file size.
If you import Tidgrid via SCSS, consider only importing the modules you actually use (tidgrid/src/grid, tidgrid/src/layout) rather than the full tidgrid/src/index. This narrows the set of generated classes before PurgeCSS even runs.