{"id":22196683,"url":"https://github.com/druids/ccn","last_synced_at":"2025-07-29T16:05:05.706Z","repository":{"id":62431373,"uuid":"117265620","full_name":"druids/ccn","owner":"druids","description":"A small library for CSS class composition","archived":false,"fork":false,"pushed_at":"2018-02-09T09:49:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T03:41:30.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/druids.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-01-12T16:48:10.000Z","updated_at":"2018-01-12T17:52:52.000Z","dependencies_parsed_at":"2022-11-01T21:00:52.349Z","dependency_job_id":null,"html_url":"https://github.com/druids/ccn","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/druids/ccn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fccn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fccn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fccn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fccn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druids","download_url":"https://codeload.github.com/druids/ccn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fccn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267716567,"owners_count":24133164,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-02T14:16:04.950Z","updated_at":"2025-07-29T16:05:05.657Z","avatar_url":"https://github.com/druids.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"CCN (Compose Class Name)\n========================\n\nA small library for CSS class composition, it supports both Clojure and ClojureScript.\n\n[![CircleCI](https://circleci.com/gh/druids/ccn.svg?style=svg)](https://circleci.com/gh/druids/ccn)\n[![Dependencies Status](https://jarkeeper.com/druids/ccn/status.png)](https://jarkeeper.com/druids/ccn)\n[![License](https://img.shields.io/badge/MIT-Clause-blue.svg)](https://opensource.org/licenses/MIT)\n\n\nLeiningen/Boot\n--------------\n\n```clojure\n[ccn \"0.1.1\"]\n```\n\nDocumentation\n-------------\n\n```clojure\n(require '[ccn.core :as ccn])\n```\n\n\n### bem\nComposes a CSS class for an element with modifiers by BEM methodology.\n\n```clojure\n(ccn/bem \"block\" [\"modifier1\" \"modifier2\"])\n\"block block--modifier1 block--modifier2\"\n\n(ccn/bem \"block\" \"element\" [\"modifier1\" \"modifier2\"])\n\"block__element block__element--modifier1 block__element--modifier2\"\n\n(ccn/bem \"block\" [nil])\n\"block\"\n```\n\n\n### css-class\nComposes a CSS class from given args, removes blanks.\n\n```clojure\n(ccn/css-class \"foo\" nil \"\")\n\"foo\"\n\n(ccn/css-class \"foo\" \"bar\")\n\"foo bar\"\n```\n\n\n### twbs\nComposes a CSS class in Twitter Bootstrap way. It handles special cases like `disabled`.\n\n```clojure\n(ccn/twbs \"table\" [\"responsive\" nil \"\"])\n\"table table-responsive\"\n\n(ccn/twbs \"btn\" [\"primary\" \"disabled\"])\n\"disabled btn btn-primary\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fccn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruids%2Fccn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fccn/lists"}