{"id":17800144,"url":"https://github.com/rakshans1/css-architecture","last_synced_at":"2026-04-18T12:03:43.588Z","repository":{"id":75931198,"uuid":"131472296","full_name":"rakshans1/css-architecture","owner":"rakshans1","description":" An opinionated css architecture based on ITCSS and SASS","archived":false,"fork":false,"pushed_at":"2018-04-29T07:12:08.000Z","size":74,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T03:51:19.814Z","etag":null,"topics":["css","css-architecture","itcss","scss"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rakshans1.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-29T06:44:55.000Z","updated_at":"2021-04-03T12:23:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1dd97e9-644b-4b15-82cd-b4253a3b2739","html_url":"https://github.com/rakshans1/css-architecture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rakshans1/css-architecture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakshans1%2Fcss-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakshans1%2Fcss-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakshans1%2Fcss-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakshans1%2Fcss-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakshans1","download_url":"https://codeload.github.com/rakshans1/css-architecture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakshans1%2Fcss-architecture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["css","css-architecture","itcss","scss"],"created_at":"2024-10-27T12:15:23.281Z","updated_at":"2026-04-18T12:03:43.550Z","avatar_url":"https://github.com/rakshans1.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Css Architecture\n\nAn opinionated css architecture based on ITCSS and SASS\n\nYou are free to add or remove folder structures depending upon the projects need.\n\n\u003cpre\u003e\nstyles/\n|\n|– 01-settings/\n|   |– _colors.scss       # Sass Color Variables\n|   |– _fonts.scss        # Sass Font Variables\n|   |– _variables.scss    # Sass Variables\n|   …                     # Etc.\n|\n|– 02-tools/\n|   |– _functions.scss    # Sass Functions\n|   |– _mixins/           # Sass Mixins\n|   |– _placeholders.scss # Sass Placeholders\n|   …                     # Etc.\n|\n|– 03-base/\n|   |– _reset.scss        # Reset/normalize\n|   |– _typography.scss   # Typography rules\n|   …                     # Etc.\n|\n|– 04-elements/\n|   |– _html.scss         # Html\n|   |– _link.scss         # Link\n|   …                     # Etc.\n|\n|– 05-components/\n|   |– _buttons.scss      # Buttons\n|   |– _carousel.scss     # Carousel\n|   |– _cover.scss        # Cover\n|   |– _dropdown.scss     # Dropdown\n|   …                     # Etc.\n|\n|– 06-layout/\n|   |– _navigation.scss   # Navigation\n|   |– _grid.scss         # Grid system\n|   |– _header.scss       # Header\n|   |– _footer.scss       # Footer\n|   |– _sidebar.scss      # Sidebar\n|   |– _forms.scss        # Forms\n|   …                     # Etc.\n|\n|– 07-pages/\n|   |– _home.scss         # Home specific styles\n|   |– _contact.scss      # Contact specific styles\n|   …                     # Etc.\n|\n|– 08-utilities/\n|   |– _colors.scss       # Colors Class Mapper\n|   |– fonts.scss         # Fonts helper\n|   …                     # Etc.\n|\n|– 09-vendors/\n|   |– _bootstrap.scss    # Bootstrap\n|   |– _jquery-ui.scss    # jQuery UI\n|   …                     # Etc.\n|\n`– main.scss              # Main Sass file\n\u003c/pre\u003e\n\nOne of the key principles is that it separates the CSS codebase to several sections (called layers), which take form of the inverted triangle:\n\n\n![Layers](./docs/layers.svg \"Layers\")\n\nThose layers are as follows:\n\n* Settings – used with preprocessors and contain font, colors definitions, etc.\n* Tools – globally used mixins and functions. It’s important not to output any CSS in the first 2 layers.\n* Base – reset and/or normalize styles, box-sizing definition, etc. This is the first layer which generates actual CSS.\n* Elements – styling for bare HTML elements (like H1, A, etc.). These come with default styling from the browser so we can redefine them here.\n* Components – specific UI components. This is where majority of our work takes place.\n* layout - This folder could have stylesheets for the main parts of the site (header, footer, navigation, sidebar…), the grid system or even CSS styles for all the forms.\n* pages - styles specific to certain pages eg. Home page, contact page\n* Utilities – utilities and helper classes with ability to override anything which goes before and can contain !important, eg. hide helper class\n* vendor - contains all the CSS files from external libraries and frameworks like bootstrap, select2\n\n\n\nThe triangle also shows how styles are ordered in CSS: from generic styles to explicit ones, from low-specificity selectors to more specific ones (but still not too specific, IDs are not allowed).\n\n![Metrics](./docs/metrics.svg \"Metrics\")\n\n\nSuch CSS organization should help us avoid Specificity Wars and is represented by a healthy [specificity graph](https://jonassebastianohlsson.com/specificity-graph/).\n\n[Breakpoints Guide](./docs/breakpoint.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakshans1%2Fcss-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakshans1%2Fcss-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakshans1%2Fcss-architecture/lists"}