{"id":23159208,"url":"https://github.com/jogemu/md3css","last_synced_at":"2025-04-04T18:42:10.304Z","repository":{"id":243447915,"uuid":"812090515","full_name":"jogemu/md3css","owner":"jogemu","description":"Pure CSS Material 3 Design with flexible icon placement.","archived":false,"fork":false,"pushed_at":"2025-02-07T01:11:35.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T02:22:15.928Z","etag":null,"topics":["css","css-baseline","css-nesting","css-variables","material-design"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jogemu.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":"2024-06-08T00:02:35.000Z","updated_at":"2025-02-07T01:11:38.000Z","dependencies_parsed_at":"2024-12-17T22:44:16.269Z","dependency_job_id":null,"html_url":"https://github.com/jogemu/md3css","commit_stats":null,"previous_names":["jogemu/md3css"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogemu%2Fmd3css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogemu%2Fmd3css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogemu%2Fmd3css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogemu%2Fmd3css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jogemu","download_url":"https://codeload.github.com/jogemu/md3css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234844,"owners_count":20905852,"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","css-baseline","css-nesting","css-variables","material-design"],"created_at":"2024-12-17T22:33:02.986Z","updated_at":"2025-04-04T18:42:10.272Z","avatar_url":"https://github.com/jogemu.png","language":"CSS","readme":"# md3css\n\nPure CSS Material 3 Design with flexible icon placement. Leverages recent CSS features, including nesting to reduce redundancy, dynamic light-dark schemes with a wide color gamut and pseudo-classes that became part of Baseline as recently as May 2024. Change the hue of the color scheme, add a font or place an icon with just one CSS variable. Using inheritance, multiple elements can be influenced while combining stylesheets, classes and inline style.\n\n![Demo](https://gist.githubusercontent.com/jogemu/f0c63ab30f60218b31efb578acf4c81d/raw/md3css.svg)\n\n\nCommon buttons are `\u003cbutton\u003e` or `\u003ca\u003e` within a `\u003cfieldset\u003e`. Use the respective button type in lower case as class and specify the optional leading icon by setting the CSS variable `--icon: url('/path/to/file.svg')` or `url('data:image/svg+xml;utf8,\u003csvg\u003e...\u003c/svg\u003e')`. Since the image is used as a mask, the color of the image does not have to match the color scheme.\n\n```html\n\u003cfieldset\u003e\n  \u003cbutton\u003eText button\u003c/button\u003e\n  \u003ca class=\"filled\" style=\"--icon: url('/path/to/file.svg');\"\u003eFilled button\u003c/a\u003e\n\u003c/fieldset\u003e\n```\n\nInputs without a label are not styled, but an id is not necessary. Put the label text in a `\u003cspan\u003e` such that `\u003clabel\u003e\u003cinput/\u003e\u003cspan/\u003e\u003c/label\u003e`. The previously introduced variable describes the optional leading icon and `--icon2` the optional trailing icon. Several of these inputs can be grouped in a fieldset with the classes for `chips`, `segmented` buttons or `switches`. Inputs other than `radio`, `checkbox` or `button` are unexpected for these classes and might misbehave.\n\n```html\n\u003clabel\u003e\u003cinput/\u003e\u003cspan\u003eText field\u003c/span\u003e\u003c/label\u003e \u003c!-- or textarea or select --\u003e\n\u003clabel\u003e\u003cinput type=\"range\"/\u003e\u003cspan\u003eSlider\u003c/span\u003e\u003c/label\u003e\n\u003cfieldset class=\"chips\"\u003e\u003clabel\u003e\u003cinput type=\"checkbox\"/\u003e\u003cspan\u003eChip\u003c/span\u003e\u003c/label\u003e\u003c/fieldset\u003e \u003c!-- or class=\"segmented\" or class=\"switches\" --\u003e\n```\n\nIn addition to cards, there are other HTML elements that, if best practices are followed, should already be designed correctly.\n\n```html\n\u003c!-- Cards --\u003e\n\u003csection class=\"cards\"\u003e\n  \u003carticle\u003e\u003ch2\u003eTitle\u003c/h2\u003e\u003cp\u003eLorem ipsum\u003c/p\u003e\u003c/article\u003e\n  \u003carticle\u003e\u003chgroup\u003e\u003ch2\u003eTitle\u003c/h2\u003e\u003cp\u003eSubhead\u003c/p\u003e\u003c/hgroup\u003e\u003cfieldset\u003e\u003cbutton\u003eOK\u003c/button\u003e\u003c/fieldset\u003e\u003c/article\u003e\n\u003c/section\u003e\n\n\u003c!-- Dialogs --\u003e\n\u003cdialog\u003e\u003ch2\u003eTitle\u003c/h2\u003e\u003cp\u003eLorem ipsum\u003c/p\u003e\u003cfieldset\u003e\u003cbutton\u003eOK\u003c/button\u003e\u003c/fieldset\u003e\u003c/dialog\u003e\n\n\u003c!-- Top app bars --\u003e\n\u003cheader\u003e\u003ca style=\"--icon: url('/path/to/file.svg');\"\u003eIcon button\u003c/a\u003e\u003ch1\u003eTop app bar\u003c/h1\u003e\u003c/header\u003e\n\n\u003c!-- Navigation bar --\u003e\n\u003cnav\u003e\u003cul\u003e\n  \u003cli\u003e\u003ca style=\"--icon: url('/path/to/file.svg');\"\u003eLabel\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e\n\u003c/nav\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjogemu%2Fmd3css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjogemu%2Fmd3css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjogemu%2Fmd3css/lists"}