{"id":15677779,"url":"https://github.com/bnomei/kirby3-fontselector","last_synced_at":"2025-10-07T11:18:30.712Z","repository":{"id":57680780,"uuid":"494106647","full_name":"bnomei/kirby3-fontselector","owner":"bnomei","description":"Kirby  Plugin to select font family and font weight with two synced fields","archived":false,"fork":false,"pushed_at":"2025-09-17T18:18:23.000Z","size":1061,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T20:50:07.006Z","etag":null,"topics":["family","fields","font","kirby","kirby-cms","kirby-plugin","kirby3","kirby4","kirby5","sync","watch","weight"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/bnomei.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,"zenodo":null}},"created_at":"2022-05-19T14:29:45.000Z","updated_at":"2025-09-17T18:19:12.000Z","dependencies_parsed_at":"2025-04-30T07:31:38.359Z","dependency_job_id":"24a4aced-8b7b-4527-b0cc-e2f24add7524","html_url":"https://github.com/bnomei/kirby3-fontselector","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"b3f5cf1a877046957fca17c7477e929d9511946f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bnomei/kirby3-fontselector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-fontselector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-fontselector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-fontselector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-fontselector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnomei","download_url":"https://codeload.github.com/bnomei/kirby3-fontselector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby3-fontselector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278762933,"owners_count":26041448,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["family","fields","font","kirby","kirby-cms","kirby-plugin","kirby3","kirby4","kirby5","sync","watch","weight"],"created_at":"2024-10-03T16:11:38.461Z","updated_at":"2025-10-07T11:18:30.700Z","avatar_url":"https://github.com/bnomei.png","language":"PHP","funding_links":["https://www.buymeacoffee.com/bnomei"],"categories":[],"sub_categories":[],"readme":"# Kirby Font Selector\n\n[![Kirby 5](https://flat.badgen.net/badge/Kirby/5?color=ECC748)](https://getkirby.com)\n![Release](https://flat.badgen.net/github/release/bnomei/kirby3-fontselector?color=ae81ff\u0026icon=github\u0026label)\n[![Discord](https://flat.badgen.net/badge/discord/bnomei?color=7289da\u0026icon=discord\u0026label)](https://discordapp.com/users/bnomei)\n[![Buymecoffee](https://flat.badgen.net/badge/icon/donate?icon=buymeacoffee\u0026color=FF813F\u0026label)](https://www.buymeacoffee.com/bnomei)\n\nKirby Plugin to select font family and font weight with two synced fields\n\n## Installation\n\n- unzip [master.zip](https://github.com/bnomei/kirby3-fontselector/archive/master.zip) as folder `site/plugins/kirby3-fontselector` or\n- `git submodule add https://github.com/bnomei/kirby3-fontselector.git site/plugins/kirby3-fontselector` or\n- `composer require bnomei/kirby3-fontselector`\n\n## Screenshot\n\n![fontselector](https://raw.githubusercontent.com/bnomei/kirby3-fontselector/master/screenshot.gif)\n\n## Fonts\n\nSet the fonts you want to use with a config value. You could use a custom JSON file or return a php array.\n\n**assets/fonts.json**\n```json\n{\n  \"fonts\": [\n    {\n      \"font\": \"Merriweather\",\n      \"weight\": [\n        600,\n        700\n      ]\n    },\n    {\n      \"font\": \"Montserrat\",\n      \"weight\": [\n        300,\n        400,\n        500\n      ]\n    }\n  ]\n}\n```\n\n```php\n\u003c?php\n\nreturn [\n    'bnomei.fontselector.fonts' =\u003e function() {\n        return Json::read(kirby()-\u003eroots()-\u003eassets() . '/fonts.json');\n        // return ['fonts' =\u003e [...]];\n    },\n    // other options\n];\n```\n\n## Usage\n\nAdd the fields to your page blueprint.\n\n**site/blueprints/default.yml**\n```yaml\nfields:\n  headlinefont:\n    type: fontfamily\n    default: Merriweather\n    required: true\n    # reload: true # optional reload on save  \n    \n  headlineh1weight:\n    type: fontweight\n    watchField: headlinefont\n    default: 700\n    required: true\n    \n  headlineh2weight:\n    type: fontweight\n    watchField: headlinefont\n    default: 600\n    required: true\n\n  copytextfont:\n    type: fontfamily\n    default: Montserrat\n    required: true\n\n  copytextweight:\n    type: fontweight\n    watchField: copytextfont\n    default: 400\n    required: true\n```\n\n\u003e [!WARNING]\n\u003e This plugin has by default a 1 minute cache.\n\n\n## Settings\n\n| bnomei.fontselector. | Default              | Description                        |            \n|----------------------|----------------------|------------------------------------|\n| fonts                | `function(){...}`    | callback to return the fonts array |\n| expire               | `1`                  | cache will expire n-minutes        |\n\n## Disclaimer\n\nThis plugin is provided \"as is\" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please [create a new issue](https://github.com/bnomei/kirby3-fontselector/issues/new).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nIt is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnomei%2Fkirby3-fontselector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnomei%2Fkirby3-fontselector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnomei%2Fkirby3-fontselector/lists"}