{"id":16039935,"url":"https://github.com/sonofmagic/tailwindcss-rem2px-preset","last_synced_at":"2025-03-17T16:31:19.342Z","repository":{"id":41380400,"uuid":"503982840","full_name":"sonofmagic/tailwindcss-rem2px-preset","owner":"sonofmagic","description":"tailwindcss-rem2px-preset","archived":false,"fork":false,"pushed_at":"2024-06-19T09:58:43.000Z","size":251,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-22T18:03:53.235Z","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/sonofmagic.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":"2022-06-16T02:16:11.000Z","updated_at":"2024-06-19T09:58:46.000Z","dependencies_parsed_at":"2023-12-15T15:48:36.197Z","dependency_job_id":"f09de02e-8ced-450a-b03a-ed7a8eadee9d","html_url":"https://github.com/sonofmagic/tailwindcss-rem2px-preset","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"a7605598fff9b7be4e50fb2e6245019b74d2c34f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"sonofmagic/npm-lib-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Ftailwindcss-rem2px-preset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Ftailwindcss-rem2px-preset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Ftailwindcss-rem2px-preset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Ftailwindcss-rem2px-preset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonofmagic","download_url":"https://codeload.github.com/sonofmagic/tailwindcss-rem2px-preset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221696740,"owners_count":16865470,"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-10-08T23:09:07.819Z","updated_at":"2024-10-27T15:17:12.173Z","avatar_url":"https://github.com/sonofmagic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailwindcss-rem2px-preset\n\nAllow configuration for using px instead of rem.\n\nDefault: `1rem` -\u003e `16px`, Of course you can custom this\n## Usage\n\n### Default\n\n`1rem` -\u003e `16px`\n```js\n// tailwind.config.js\n\nmodule.exports = {\n  presets: [\n    require('tailwindcss-rem2px-preset')\n  ],\n  // ...\n}\n```\n\n### Custom\n\nFor weapp developers, we need to use `rpx` instead of `rem`\n\ne.g: `1rem` -\u003e `32rpx`\n\n```js\n// tailwind.config.js\n\nmodule.exports = {\n  presets: [\n    require('tailwindcss-rem2px-preset').createPreset({\n      fontSize: 32,\n      unit: 'rpx'\n    })\n  ],\n  // ...\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Ftailwindcss-rem2px-preset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonofmagic%2Ftailwindcss-rem2px-preset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Ftailwindcss-rem2px-preset/lists"}