{"id":15041755,"url":"https://github.com/thatgibbyguy/ply","last_synced_at":"2026-04-01T19:59:02.616Z","repository":{"id":2809674,"uuid":"47506136","full_name":"thatgibbyguy/ply","owner":"thatgibbyguy","description":"ply - A ratio based CSS Framework in SCSS.","archived":false,"fork":false,"pushed_at":"2023-01-05T20:39:16.000Z","size":6778,"stargazers_count":18,"open_issues_count":8,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T22:19:49.816Z","etag":null,"topics":["css-framework","grid","ratio","scss","smacss"],"latest_commit_sha":null,"homepage":"","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/thatgibbyguy.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}},"created_at":"2015-12-06T17:21:12.000Z","updated_at":"2021-06-16T17:01:52.000Z","dependencies_parsed_at":"2023-01-13T12:06:25.940Z","dependency_job_id":null,"html_url":"https://github.com/thatgibbyguy/ply","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgibbyguy%2Fply","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgibbyguy%2Fply/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgibbyguy%2Fply/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgibbyguy%2Fply/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatgibbyguy","download_url":"https://codeload.github.com/thatgibbyguy/ply/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248953349,"owners_count":21188621,"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-framework","grid","ratio","scss","smacss"],"created_at":"2024-09-24T20:46:26.641Z","updated_at":"2026-04-01T19:59:02.601Z","avatar_url":"https://github.com/thatgibbyguy.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ply\n\nA ratio-based, AI-ready CSS framework with dark mode, accessibility, and a small footprint.\n\n**~21KB gzipped. No JavaScript. No build step. One `\u003clink\u003e` tag.**\n\n## Install\n\n### npm + Sass (recommended)\n\nFor real projects, install ply and import the SCSS source to get the full color palette, variables, and mixins.\n\n```sh\nnpm install ply-css\n```\n\n```scss\n@use \"ply-css/src/scss/ply\" as *;\n```\n\n### CDN (prototyping)\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/ply-css@1/dist/css/ply.min.css\"\u003e\n```\n\n### Git\n\n```sh\ngit clone https://github.com/thatgibbyguy/ply.git\n```\n\n## Why ply?\n\nCSS frameworks were designed for humans reading documentation. But increasingly, the first consumer of your framework is an AI — a coding agent in Replit, Claude, Cursor, or Copilot generating a UI from a prompt.\n\n- **Start semantic** — ply automatically styles `\u003cnav\u003e`, `\u003ctable\u003e`, `\u003ccode\u003e`, `\u003cblockquote\u003e`, `\u003cdetails\u003e`, `\u003cdialog\u003e`, and more. Start with what HTML gives you, then reach for classes when you need them.\n- **AI-native** — ships with `PLY.md` (AI instruction file) and `ply-classes.json` (machine-readable class reference). Class names are predictable: `.alert-blue`, `.btn-sm`, `.unit-50`.\n- **Accessible by default** — `:focus-visible` outlines on all interactive elements (including `\u003csummary\u003e` and legacy components), `prefers-reduced-motion`, `prefers-color-scheme` dark mode, semantic HTML styling, WCAG AA contrast in both light and dark themes. Published [VPAT 2.5](https://plycss.com/docs/vpat) documenting conformance against all WCAG 2.1 Level A and AA criteria.\n- **Small footprint** — ~21KB gzipped (full), ~17KB (core). No JavaScript runtime, no build step, no tree-shaking.\n- **Ratio-based grid** — think in percentages, not arbitrary columns. `unit-50` is 50%, `unit-33` is 33%. Responsive prefixes: `tablet-unit-*`, `phone-unit-*`.\n- **Custom theming** — override `--ply-*` CSS custom properties to create any theme. Light and dark modes built in.\n\n## Quick Start\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"UTF-8\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/ply-css@1/dist/css/ply.min.css\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003cdiv class=\"units-container\"\u003e\n    \u003cdiv class=\"units-row\"\u003e\n      \u003cdiv class=\"unit-50 tablet-unit-100\"\u003e\n        \u003ch1\u003eHello, ply\u003c/h1\u003e\n        \u003cp\u003eA two-column layout. Stacks on tablet and below.\u003c/p\u003e\n      \u003c/div\u003e\n      \u003cdiv class=\"unit-50 tablet-unit-100\"\u003e\n        \u003cbutton class=\"btn btn-primary\"\u003eGet Started\u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Bundles\n\n| Bundle | File | Description |\n|--------|------|-------------|\n| Full | `ply.min.css` | Everything — grid, typography, forms, buttons, navigation, notifications, labels, dropdown, loader, helpers |\n| Core | `ply-core.min.css` | Grid, typography, forms, buttons, navigation, notifications, essential helpers |\n| Essentials | `ply-essentials.min.css` | Grid + helpers only |\n\n## Dark Mode\n\nply respects `prefers-color-scheme` automatically. No configuration needed.\n\nTo force a mode:\n\n```html\n\u003chtml data-theme=\"dark\"\u003e  \u003c!-- Force dark --\u003e\n\u003chtml data-theme=\"light\"\u003e \u003c!-- Force light --\u003e\n\u003chtml\u003e                     \u003c!-- Auto (follows OS) --\u003e\n```\n\n## Custom Themes\n\nOverride `--ply-*` CSS custom properties to create any theme:\n\n```css\n[data-theme=\"warm\"] {\n  --ply-bg-body: #faf5f0;\n  --ply-color-body: #1c1917;\n  --ply-color-headings: #44240e;\n  --ply-color-accent: #92400e;     /* Icons, badges, section accents */\n  --ply-btn-default-bg: #92400e;   /* Primary button + links */\n  --ply-btn-secondary-bg: #78350f; /* Secondary button */\n  --ply-btn-border-radius: 0.5rem; /* Button corner radius */\n  --ply-font-body: Palatino, Georgia, serif;\n  --ply-font-heading: Palatino, Georgia, serif;\n  /* ... */\n}\n```\n\n```html\n\u003chtml data-theme=\"warm\"\u003e\n```\n\nSee `snippets/custom-theme.html` for a full working example.\n\n## Icons\n\nply doesn't include icons. [Lucide](https://lucide.dev) is recommended — lightweight, clean, and pairs well with ply. Any icon library works.\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/lucide@latest/dist/umd/lucide.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003elucide.createIcons();\u003c/script\u003e\n```\n\n## AI Integration\n\nFor AI agents (Claude, Cursor, Copilot, Replit AI):\n\n- **`PLY.md`** — complete class reference, usage rules, anti-patterns, and snippets\n- **`ply-classes.json`** — machine-readable class map for programmatic tool use\n- **`snippets/`** — copy-paste HTML files for common patterns (dashboard, login, contact form, etc.)\n\nply is standalone — it should not be used alongside Tailwind, Bootstrap, or other CSS frameworks.\n\n## Development\n\n```sh\nnpm install\nnpm run build     # Compile all bundles\nnpm run watch     # Watch for changes\nnpm run lint      # Run stylelint\n```\n\n### Tech\n\n- [Sass](https://sass-lang.com/) (modern `@use`/`@forward` modules)\n- [PostCSS](https://postcss.org/) + [Autoprefixer](https://github.com/postcss/autoprefixer) + [cssnano](https://cssnano.github.io/cssnano/)\n\n## Compliance\n\nply targets ADA Title II (28 CFR Part 35) / WCAG 2.1 AA compliance at the framework level. A [VPAT 2.5](https://plycss.com/docs/vpat) is published documenting conformance against all Level A and Level AA success criteria.\n\n## Documentation\n\nFull interactive docs at [plycss.com](https://plycss.com) — browse every class with live examples, search the entire framework, and copy-paste code snippets.\n\n## Roadmap\n\n- CSS logical properties for native RTL support (replaces bolt-on mirroring)\n- Build-time class validator / VS Code extension\n- Automated accessibility test suite (VPAT evidence)\n\n## Contributing\n\nFork this repo and create a Pull Request with your changes.\n\n## License\n\nMIT\n\nSpecial thanks to [imperavi](https://imperavi.com/) for creating the CSS framework I could only envision at the time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatgibbyguy%2Fply","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatgibbyguy%2Fply","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatgibbyguy%2Fply/lists"}