{"id":21838270,"url":"https://github.com/codemask-labs/stylik","last_synced_at":"2025-04-14T10:21:45.404Z","repository":{"id":263567156,"uuid":"889991297","full_name":"codemask-labs/stylik","owner":"codemask-labs","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-28T12:54:55.000Z","size":231,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T23:33:02.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/codemask-labs.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-11-17T18:39:27.000Z","updated_at":"2024-11-28T12:54:59.000Z","dependencies_parsed_at":"2024-11-19T08:51:48.941Z","dependency_job_id":"1f735880-b32a-42a7-9658-34183506dac9","html_url":"https://github.com/codemask-labs/stylik","commit_stats":null,"previous_names":["codemask-labs/stylik"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Fstylik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Fstylik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Fstylik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemask-labs%2Fstylik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemask-labs","download_url":"https://codeload.github.com/codemask-labs/stylik/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860005,"owners_count":21173344,"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":[],"created_at":"2024-11-27T21:09:42.316Z","updated_at":"2025-04-14T10:21:45.374Z","avatar_url":"https://github.com/codemask-labs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylik ✏️\n\nMinimal CSS-in-JS library\n\n## Features\n\n- ✍️ Simple configuration\n- 💅 Minimal API\n- 💪 TypeScript support\n- 🌈 Media queries and pseudo selectors\n- 📦 Astro integration\n\n## Installation\n\nInstall package using preferred package manager:\n\n```bash\nnpm install @codemask-labs/stylik\nyarn add @codemask-labs/stylik\npnpm add @codemask-labs/stylik\nbun add @codemask-labs/stylik\n```\n\n## Getting started\n\n### Configuration\n\nCreate theme, breakpoints and override stylik types:\n\n```ts\nexport const theme = {\n    colors: {\n        error: '#FF0000',\n        white: '#FFFFFF',\n        black: '#000000',\n    },\n} as const\n\nexport const breakpoints = {\n    xs: 0,\n    md: 992,\n    lg: 1920,\n} as const\n\nexport type Breakpoints = typeof breakpoints\nexport type Theme = typeof theme\n\ndeclare module '@codemask-labs/stylik' {\n    interface StylikTheme extends Theme {}\n    interface StylikBreakpoints extends Breakpoints {}\n}\n```\n\nConfigure stylik using `StyleSheet.configure` or built in Astro integration.\n\n```ts\nimport { StyleSheet } from '@codemask-labs/stylik'\n\nStyleSheet.configure({\n    theme,\n    breakpoints,\n})\n```\n\n```ts\nimport { defineConfig } from 'astro/config'\nimport { stylik } from '@codemask-labs/stylik/astro'\nimport { breakpoints, theme } from './src/lib/styles'\n\nexport default defineConfig({\n    integrations: [\n        stylik({\n            breakpoints,\n            theme,\n        }),\n    ]\n})\n```\n\nAnd configuration is done!\n\n### Styling\n\n```tsx\nimport { StyleSheet } from '@codemask-labs/stylik'\n\nconst App = () =\u003e (\n    \u003cdiv className={styles.wrapper}\u003e\n        \u003ch1\u003eMeet stylik!\u003c/h1\u003e\n        \u003cdiv className={styles.wrapper({ fontSize: 32 })}\u003e\n            Minimal CSS-in-JS library\n        \u003c/div\u003e\n    \u003c/div\u003e\n)\n\nconst styles = StyleSheet.create(theme =\u003e ({\n    wrapper: {\n        padding: 16\n    },\n}))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemask-labs%2Fstylik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemask-labs%2Fstylik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemask-labs%2Fstylik/lists"}