### Linking Minified CSS Stylesheet in HTML Source: https://github.com/harrycresswell/cu/blob/main/public/getting-started/index.html This HTML snippet demonstrates how to link the minified 'main.min.css' file into the
section of a web page. It ensures the cu.css styles are applied to the document, with 'media="screen"' specifying that the stylesheet is intended for screen display. ```HTML ``` -------------------------------- ### Defining Global CSS Theme Tokens Source: https://github.com/harrycresswell/cu/blob/main/public/getting-started/index.html This snippet defines global CSS custom properties within the `:root` pseudo-class, serving as theme tokens for typography, colors (including a dark mode media query), grid gutters, border-radius, and shadows. These variables cascade throughout the CSS, allowing for centralized theme customization. ```CSS /* Global theme tokens */ :root { /* Typography */ --font-base: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; --font-display: var(--font-base); --font-accent: 'Menlo', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', 'Courier New', monospace; --font-weight-regular: 400; --font-weight-bold: 700; --line-height-compact: 1.2; --line-height-base: 1.5; --line-height-loose: 1.7; --width-compact: 35ch; --width-longform: 65ch; --tracking: -0.05ch; --tracking-s: -0.05ch; /* Colors created with Utopia Kickstarter project @link https://www.figma.com/community/file/1122903924123950023 */ --color-text: #1D1D1D; --color-text-mod-1: #494949; --color-text-mod-2: #616161; --color-bg: #ffffff; --color-bg-mod-1:#F8F8F8; --color-bg-mod-2: #EDEDED; --color-border: #1D1D1D; --color-brand: #4f29f0; --color-accent: #9F2C5E; --color-highlight: #eefbc1; @media (prefers-color-scheme: dark) { /* If theme doesn’t require a dark mode then remove this media query altogether */ --color-text: #CED3E8; --color-text-mod-1: #C4CAE3; --color-text-mod-2: #8995C8; --color-bg: #0D101A; --color-bg-mod-1:#121626; --color-bg-mod-2: #212845; --color-border: #CED3E8; --color-brand: #a08aff; --color-accent: #FF70AE; } /* Grid */ --gutter: var(--space-s-m); /* Effects */ --border-radius: 0; // Set a rem value to add border radius to buttons, form elements, cards, callouts and accordians. --shadow: 0px 3px 7px rgba(0, 0, 0, 0.08), 0px 0px 1px rgba(0, 0, 0, 0.025); } ``` -------------------------------- ### Defining Inter Font Faces in CSS Source: https://github.com/harrycresswell/cu/blob/main/public/getting-started/index.html This snippet defines `@font-face` rules for the Inter font, enabling self-hosting and performance optimization. It includes declarations for both regular (400) and bold (700) weights, specifying font display behavior and source URLs for WOFF2 and WOFF formats. ```CSS /* Google fonts with subsetting via Google Webfonts Helper @link https://gwfh.mranftl.com/fonts/inter?subsets=latin */ @font-face { font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ font-family: 'Inter'; font-style: normal; font-weight: 400; src: url("../fonts/inter-v12-latin-regular.woff2") format("woff2"), url("../fonts/inter-v12-latin-regular.woff") format("woff"); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } @font-face { font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ font-family: 'Inter'; font-style: normal; font-weight: 700; src: url("../fonts/inter-v12-latin-700.woff2") format("woff2"), url("../fonts/inter-v12-latin-700.woff") format("woff"); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } ``` -------------------------------- ### Linking Local CSS Stylesheet in HTML Source: https://github.com/harrycresswell/cu/blob/main/content/getting-started/installation.md This snippet demonstrates how to link the `main.min.css` stylesheet, copied locally into your project, within the `` section of an HTML page. It ensures the `cu.css` styles are applied to the page for screen media. ```HTML ``` -------------------------------- ### Linking cu.css Stylesheet in HTML Source: https://github.com/harrycresswell/cu/blob/main/public/getting-started/installation/index.html This snippet demonstrates how to link the minified cu.css stylesheet (`main.min.css`) to an HTML document. It should be placed within the `` section of the page to apply the styles. ```HTML ``` -------------------------------- ### Generic Hero Section HTML Example Source: https://github.com/harrycresswell/cu/blob/main/content/blocks/hero.md This code block presents a generic HTML example for a hero component, showcasing the recommended class grouping using a pipe (`|`) to separate the block class (`hero`) from utility classes (`region`, `flow`). This convention, part of Cube CSS, enhances code clarity and maintainability. ```htmlSome page description