{"id":22161364,"url":"https://github.com/appsweet-co/spock-css","last_synced_at":"2026-05-06T07:37:09.268Z","repository":{"id":129948704,"uuid":"395721702","full_name":"Appsweet-co/spock-css","owner":"Appsweet-co","description":"A lightweight CSS utility library using logical properties","archived":false,"fork":false,"pushed_at":"2024-06-03T21:10:06.000Z","size":311,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-29T20:38:01.748Z","etag":null,"topics":["css","logical-properties","responsive-layout","sass","utility-classes","utility-library"],"latest_commit_sha":null,"homepage":"https://github.com/Appsweet-co/spock-css","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Appsweet-co.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-13T16:31:14.000Z","updated_at":"2024-06-03T20:34:17.000Z","dependencies_parsed_at":"2023-12-12T18:20:41.785Z","dependency_job_id":"09a6936a-6313-4541-99f3-97be73fb9798","html_url":"https://github.com/Appsweet-co/spock-css","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsweet-co%2Fspock-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsweet-co%2Fspock-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsweet-co%2Fspock-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsweet-co%2Fspock-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Appsweet-co","download_url":"https://codeload.github.com/Appsweet-co/spock-css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245295978,"owners_count":20592132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","logical-properties","responsive-layout","sass","utility-classes","utility-library"],"created_at":"2024-12-02T04:14:42.488Z","updated_at":"2026-05-06T07:37:09.236Z","avatar_url":"https://github.com/Appsweet-co.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/readme/spock.jpeg\" alt=\"Logo\" width=\"250\" height=\"auto\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e@appsweet-co/spock-css\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eLightweight CSS utilities using logical properties and CSS variables\u003c/b\u003e\u003c/br\u003e\n  \u003csub\u003e\u003csub\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\nSpock CSS is a lightweight CSS utility library. It uses [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties) and [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Variables) to keep things small and easy to work with.\n\n## Quick Start\n\nInstall Spock CSS using npm.\n\n```zsh\nnpm i @appsweet-co/spock-css\n```\n\nAdd the CSS file to your HTML as needed.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"./node_modules/@appsweet-co/spock-css/dist/spock.min.css\"\u003e\n```\n\nYou can also import Spock CSS directly from a CDN.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@appsweet-co/spock-css@latest/dist/spock.min.css\"\u003e\n  \n\u003c!-- OR --\u003e\n  \n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@appsweet-co/spock-css@latest/dist/spock.min.css\"\u003e\n```\n\nRemember to replace `latest` with a specifc version number when using the CDN. See [Unpkg](https://unpkg.com/) and [jsDelivr](https://www.jsdelivr.com/) for details.\n\n## Design Goals\n\n### Utility First\n\nUtility styles are easy to reuse. They do one thing in the same way every time with no side effects. They keep the [CSS specificity](https://specificity.keegan.st/) flat and eliminate the need to [invent new names](https://en.wikipedia.org/wiki/Principle_of_least_astonishment).\n\n:dart: ***PRO TIP: Read [this article](https://frontstuff.io/in-defense-of-utility-first-css) for more info on why Utility-First CSS is a good thing.***\n\nWe include utilities for most [CSS Properties](https://developer.mozilla.org/en-US/docs/Web/CSS). We exclude deprecated, experimental, and non-standard properties; `float`; and properties that use [traditional directions and dimensions](#logical-properties).\n\n### Logical Properties\n\nWe use [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties) instead of traditional directions and dimensions. This makes it easy to localize your projects for right-to-left languages. Example:\n\n```html\n\u003ch1 style=\"--margin-block-end:2rem\"\u003eHello World\u003c/h1\u003e\n```\n\n### CSS Variables\n\nWe use [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Variables) instead of CSS Classes. This keeps our library small and universal.\n\n:dart: ***PRO TIP: See [Bonsai CSS](https://www.bonsaicss.com/#utility-complete-css) for more info on why CSS Variables are a good thing.***\n\n### Native CSS Functions\n\nWe encourage the use of [native CSS functions](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Functions#math_functions) instead of traditional breakpoints like you see in frameworks like [Bootstrap](https://getbootstrap.com/docs/5.1/layout/breakpoints/) or [Tailwind](https://tailwindcss.com/docs/breakpoints). This keeps our library small and makes it easy for your code to work across all screens sizes.\n\n### Theme Agnostic\n\nWe make no assumptions about your project's theme. Use CSS variables as needed to set properties. Example:\n\n```html\n\u003ch1 style=\"--color:var(--primary); --font-size:var(--size-lg)\"\u003eHello World\u003c/h1\u003e\n```\n\nWe also make no assumptions about your project's baseline CSS. We built our library to work well with other CSS Frameworks like [Bootstrap](https://getbootstrap.com/docs/5.1/layout/breakpoints/) or [Tailwind](https://tailwindcss.com/docs/breakpoints).\n\n### Verbose Names\n\nAbbreviations are hard to understand. Our utility names mirror the selectors they reference. This makes it easy to read and write. Examples:\n\n```html\n\u003cdiv style=\"--aspect-ratio:1; --width:100vw\"\u003e\n  \u003ch1 style=\"--text-align:center\"\u003eHello World\u003c/h1\u003e\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsweet-co%2Fspock-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappsweet-co%2Fspock-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsweet-co%2Fspock-css/lists"}