{"id":52051067,"url":"https://github.com/graylog2/sawmill","last_synced_at":"2026-08-02T13:00:45.099Z","repository":{"id":354461665,"uuid":"383814863","full_name":"Graylog2/sawmill","owner":"Graylog2","description":"Graylog Design System","archived":false,"fork":false,"pushed_at":"2026-06-24T04:12:58.000Z","size":1804,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-07-06T02:05:01.716Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Graylog2.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-07T13:51:08.000Z","updated_at":"2026-06-11T10:10:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Graylog2/sawmill","commit_stats":null,"previous_names":["graylog2/sawmill"],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/Graylog2/sawmill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Graylog2%2Fsawmill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Graylog2%2Fsawmill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Graylog2%2Fsawmill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Graylog2%2Fsawmill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Graylog2","download_url":"https://codeload.github.com/Graylog2/sawmill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Graylog2%2Fsawmill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36193575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-08-02T02:00:06.915Z","response_time":58,"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":"2026-08-02T13:00:42.567Z","updated_at":"2026-08-02T13:00:45.082Z","avatar_url":"https://github.com/Graylog2.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sawmill\n\nGraylog common design system. This package provides the mantine (SawmillMantine) and styled-components (SawmillSC) theme.\n\n## Using Sawmill\n\n### Install the package\n\n```bash\n$ yarn add @graylog/sawmill\n```\n\n### Typescript configuration\n\nOnce the package is installed, you need to adjust the styled-components type declaration `@types/styled-components/index.d.ts`, in case you need want to use the styled-components sawmill (SawmillSC):\n\n```tsx\nimport 'styled-components';\nimport type { StyledComponentsTheme } from '@graylog/sawmill/styled-components';\n\ndeclare module 'styled-components' {\n  export interface DefaultTheme extends StyledComponentsTheme {}\n}\n```\n\n### Setting up theme provider\n\nEach sawmill provides a theme for the related theme provider:\n\n```tsx\nimport SawmillMantine from '@graylog/sawmill/mantine';\nimport type { ColorScheme } from '@graylog/sawmill';\n\nconst AppThemeProvider = ({ children }: React.PropsWithChildren\u003c{}\u003e) =\u003e {\n  const [colorScheme, setColorScheme] = useState\u003cColorScheme\u003e(DEFAULT_THEME_MODE);\n  const mantineTheme = useMemo(\n    () =\u003e SawmillMantine({ colorScheme }),\n    [colorScheme],\n  );\n  \n  return \u003cMantineProvider theme={mantineTheme}\u003e{children}\u003c/MantineProvider\u003e\n}\n```\n\n### Importing fonts\nTo import the fonts defined in the sawmill theme, just include `import '@graylog/sawmill/fonts'` in your project.\n\n## Making changes\nThe foundation of the styled-component and mantine sawmill is the `THEME_BASE.ts` file.\nWhen you make a change to this theme base you need to run `yarn generate-themes` to generate the theme for each sawmill.\n\n\n## Building the library\nTo build the library you need to run:\n\n```shell\n$ yarn build # Compile source with tsc and generate `dist` files.\n```\n\n## Testing changes locally\nWhen you want to test changes locally, you need to add the local repository temporary as a dependency for you project:\n```shell\nyarn add file:/path/to/this/project\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraylog2%2Fsawmill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraylog2%2Fsawmill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraylog2%2Fsawmill/lists"}