{"id":15011366,"url":"https://github.com/streetstrider/axiom","last_synced_at":"2026-01-28T02:52:22.580Z","repository":{"id":57163131,"uuid":"92540910","full_name":"StreetStrider/axiom","owner":"StreetStrider","description":"set of axiomatic CSS mixins","archived":false,"fork":false,"pushed_at":"2023-01-10T16:42:28.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T22:43:52.326Z","etag":null,"topics":["css","less","lesscss","npm"],"latest_commit_sha":null,"homepage":"","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StreetStrider.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":"2017-05-26T19:08:20.000Z","updated_at":"2023-01-10T16:42:26.000Z","dependencies_parsed_at":"2023-02-08T19:31:08.203Z","dependency_job_id":null,"html_url":"https://github.com/StreetStrider/axiom","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreetStrider%2Faxiom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreetStrider%2Faxiom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreetStrider%2Faxiom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreetStrider%2Faxiom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StreetStrider","download_url":"https://codeload.github.com/StreetStrider/axiom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243307333,"owners_count":20270256,"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","less","lesscss","npm"],"created_at":"2024-09-24T19:40:49.805Z","updated_at":"2026-01-28T02:52:22.544Z","avatar_url":"https://github.com/StreetStrider.png","language":"Less","funding_links":[],"categories":[],"sub_categories":[],"readme":"# axiom\n[![npm|@streetstrider/axiom](http://img.shields.io/badge/npm-@streetstrider/axiom-CB3837.svg?style=flat-square)](https://www.npmjs.org/package/@streetstrider/axiom)\n[![ISC licensed](http://img.shields.io/badge/license-ISC-brightgreen.svg?style=flat-square)](#license)\n\nAxiom is a set of axiomatic CSS mixins.\n\n## the idea\n**1**: Consider the following CSS property name and property value domains.\n\n| key | value |\n| --- | --- |\n| **display** | block |\n|  | flex |\n|  | inline-block |\n|  | inline |\n| **position** | relative |\n| | absolute |\n| | fixed |\n| **font-weight** | bold |\n| **font-style** | italic |\n| … etc ||\n\nIn many cases, the **value** itself is representative enough and even unique across all property domains. When you see value like `block` it is in most cases means `display: block`. So the first idea is to omit keys in cases when they are obvious. CSS does not support «boolean» or «flag» values. This is a place for a mixins, like `.block`.\n\n**2**: We often use properties in a composition. Like when you need some special `left` value,\nyou often need also a `top`. Or when you specify `width` you may want to specify `height` as well in some cases. Sometimes you need block with line of text inside, so you specify both `height` and `line-height` of the same value.\nMixins, which provide adequate abstractions, like `.pos(@top; @left)` or `.wh(@width; @height)` (with a little help of reasonable defaults) may be handy.\n\n**3**: Using axiomatic mixins allow to write short, well-composed and even poetic definitions\nfor elements. It is a good ground for more high-level mixins.\n\n## install \u0026 usage\n**install**:\n```sh\n$ npm i @streetstrider/axiom\n```\n\n**usage**:\n```less\n/* import whole package */\n@import (reference) 'node_modules/@streetstrider/axiom/axiom/index';\n\n/* or pick axioms */\n@import (reference) 'node_modules/@streetstrider/axiom/axiom/display';\n@import (reference) 'node_modules/@streetstrider/axiom/axiom/flex';\n\n.component\n{\n\t.flex;\n\n\t\u0026 \u003e .main\n\t{\n\t\t.grow;\n\t}\n}\n\n/* import with namespace */\n#axiom\n{\n\t@import (reference) 'node_modules/@streetstrider/axiom/axiom/flex';\n}\n\n.component\n{\n\t#axiom \u003e .flex;\n\t/* or */\n\t#axiom.flex;\n\n\t\u0026 \u003e .main\n\t{\n\t\t#axiom \u003e .grow;\n\t}\n\t/* or */\n\t\u0026 \u003e .main\n\t{\n\t\t#axiom.grow;\n\t}\n}\n```\n\n## license\nISC, © Strider, 2023.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreetstrider%2Faxiom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreetstrider%2Faxiom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreetstrider%2Faxiom/lists"}