Show HN: Sumi.css – CSS Framework
Recorded: Oct. 21, 2026, 3:11 p.m.
| Original | Summarized |
GitHub - vladocar/Sumi.css: A minimalist, classless-first CSS framework. · GitHub Skip to content Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings You signed in with another tab or window. Reload to refresh your session. Dismiss alert vladocarSumi.cssRepository navigationCodeIssues1 (1)Pull requestsActionsProjectsSecurity and qualityInsightsMore items Sumi.cssPublicNotificationsYou must be signed in to change notification settingsFork0 (0)Star33 (33)You must be signed in to star a repositoryAboutA minimalist, classless-first CSS framework.vladocar.github.io/Sumi.css/docs.htmlTopicscsscss-frameworkcss-gridResourcesReadmeMIT licenseActivityStars33 starsWatchers0 watchingForks0 forksReport repositorymainBranchesTagsGo to fileCodeOpen more actions menuLatest commit History10 Commits10 CommitsFolders and filesNameNameLast commit messageLast commit dateLICENSELICENSE README.mdREADME.md docs.htmldocs.html sumi.csssumi.css sumi.min.csssumi.min.css tutorial.htmltutorial.html View all filesRepository files navigationREADMEMIT licenseMore items One file, no build step. 6.7 KB minified and gzipped, with no JavaScript and no dependencies. Components · Tutorial · Cheat sheet Contents Install Install <main> <footer> Element h1–h6, p, lists, blockquote, code, kbd, pre, mark <nav> with two <ul> <button>, [type=submit], <a role="button"> <input>, <select>, <textarea>, <label>, <fieldset> type="checkbox", type="radio", type="range", type="file", type="color" <table> <article> <details> / <summary> <dialog> <progress>, <meter> Classes and attributes Class or attribute .container .container-fluid .narrow .grid .cols-2 .cols-3 .cols-4 .cols-6 .cols-12 .span-2 … .span-9, .span-full .row .spread .stack .display .lead .prose .serif .secondary .contrast .outline .small .large .full role="button" role="group" role="switch" aria-invalid="true" / "false" aria-busy="true" aria-current="page" data-tooltip="…" data-placement="bottom" data-theme="light" / "dark" .dropdown .right .callout + .success .warning .danger .striped .muted .small .center .sr-only .overflow-auto A few examples <!-- Field with helper text and validation --> <!-- Switch --> <!-- Card --> <!-- Dropdown --> <!-- Modal: open with dialog.showModal(); the form closes it --> <!-- 12-column layout from tablet width up --> <!-- Change the minimum column width for one grid --> <hgroup> pairs a heading with an eyebrow (<h6> before it) and a subtitle (<p> after it). Theming Token --s-primary, --s-on-primary --s-secondary, --s-contrast --s-bg, --s-surface, --s-card --s-text, --s-muted --s-border, --s-border-strong --s-success, --s-warning, --s-danger --s-font-body, --s-font-heading, --s-font-mono, --s-font-serif --s-font-size, --s-line-height, --s-heading-weight --s-text-display, --s-text-h1 … --s-text-h4, --s-text-lead --s-flow, --s-space --s-container, --s-narrow, --s-measure, --s-gutter --s-radius, --s-shadow, --s-shadow-lg The full list is at the top of sumi.css. document.querySelector('#theme-toggle').addEventListener('click', () => { File sumi.css sumi.min.css docs.html tutorial.html To rebuild the minified file after editing the source: Footer © 2026 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
Sumi.css is a CSS framework authored by Vladimir Carrer, designed as a minimalist, classless-first solution for building responsive and accessible web interfaces. The framework's primary objective is to enable developers to write plain, semantic HTML that automatically achieves a polished, finished appearance with minimal use of classes. By default, the framework applies styles based solely on the HTML element's inherent characteristics, thereby styling headings, forms, tables, cards, accordions, modals, and navigation structures without requiring extensive class declarations. This approach drastically reduces the need for custom styling, allowing for a more maintainable and accessible codebase. The framework is delivered in a single, self-contained file, sumi.min.css, which is compressed to approximately 6.7 kilobytes when minified and gzipped. It contains no JavaScript and no external dependencies, making it highly portable and easy to integrate into any project. The unminified source file, sumi.css, is provided for development, complete with explanatory comments that detail each styling section. For production deployment, the minified version is recommended, while developers may opt to use the unminified source during iterative development. Sumi.css emphasizes accessibility as a core design principle. It incorporates visible focus rings to assist users with visual impairments, implements ARIA-driven states such as aria-invalid, aria-busy, and aria-current to enhance semantic clarity, and explicitly supports reduced motion preferences to ensure compliance with accessibility guidelines. These features are built into the framework's default styling, requiring no additional configuration. Theming is a central aspect of Sumi.css, as every design decision is encapsulated within CSS custom properties that begin with the prefix --s-. This allows developers to easily override any color, font, size, or radius by defining custom properties in their own stylesheet. Tokens are organized into categories such as primary colors, secondary and contrast colors, background and surface colors, text colors, borders, validation states, typography, spacing, layout dimensions, and radius and shadow effects. For example, a developer can set --s-primary to a custom hex value and --s-radius to a specific rem value, and the entire framework will adapt accordingly. Tokens can also be applied at the element level using inline styles, enabling localized theming within specific components. Dark mode support is seamlessly integrated into Sumi.css. The framework automatically follows the visitor's system color scheme without requiring any additional code, while developers can force a specific light or dark mode by setting the data-theme attribute on the html element or any other element. The dark palette is defined twice within the framework: once for the system setting and once for data-theme="dark", ensuring that both scenarios are consistently styled. An example of a theme toggle that preserves the user's choice using localStorage is provided, demonstrating how to manage dark mode dynamically. Overriding Sumi.css styles is straightforward due to the use of :where() selectors, which possess zero specificity. This means that a plain CSS selector can override Sumi's styles without the need for !important, promoting clean and predictable cascading. Developers can easily customize component appearances by writing custom CSS that uses the framework's custom properties, thereby building bespoke components that automatically adhere to the chosen theme and dark mode. Sumi.css includes a comprehensive set of components and layout utilities. The grid system supports auto-fitting columns that stack on mobile and expand on larger screens, with the ability to set a minimum column width via custom properties. A 12-column layout is available for tablet and desktop widths, allowing developers to create responsive layouts with spans for different content sections. Cards are styled as shaded containers with headers and footers that align at the bottom. Accordions and modals are built-in, with modals utilizing a blurred backdrop for focus. Forms are fully styled, including inputs, selects, textareas, labels, and fieldsets, with focus rings and helper text. Tables receive clean, tabular styling, and custom controls such as checkboxes, radios, ranges, files, and colors are themed appropriately. Typography in Sumi.css follows a fluid type scale that adjusts based on the viewport, with a ratio ranging from 1.2 on mobile to 1.28 on desktop and base font sizes easing from 16px to 17px. The framework provides utility classes such as hgroup for pairing headings with eyebrow and subtitle text, lead for intro paragraphs, display for hero headlines, prose for long-form reading columns with hyphenation, and serif for switching to a serif typeface. These classes eliminate the need for media queries, simplifying the development of typography layouts. The framework supports a variety of utility classes for layout and theming, including container widths, grid column configurations, spans, row spacing, display styles, and muted or hidden elements. These utilities are accessible and do not require additional classes beyond the semantic HTML structure. Browser support is confirmed for current versions of Chrome, Edge, Firefox, and Safari. The framework leverages modern CSS features such as :where(), :has(), and color-mix(), which are available from Chrome and Edge 111, Firefox 121, and Safari 16.2. For older browsers, the framework still renders readable pages, with slightly simpler hover and focus colors. The repository contains several files: sumi.css for development with comments, sumi.min.css for production use, docs.html which provides interactive documentation with light/dark switching and a live token editor, and tutorial.html which offers a step-by-step guide for building pages with Sumi. To rebuild the minified file after editing the source, developers can use the command npx lightningcss-cli --minify sumi.css -o sumi.min.css. The license for Sumi.css is MIT, released by Vladimir Carrer in 2026, granting broad permissiveness for commercial and non-commercial use. The repository currently has 33 stars and 0 forks, with one open issue, indicating a community that has adopted the framework but is still in an early stage of widespread adoption. |