Files
rendercv/docs/developer_guide/how_to/add_theme.md
husam515 4a9083c117 Add Arabic locale support (#591)
* feat: Add Arabic locale support and update Typst preamble template.

* feat: add rtl support for the Full.html template

* fix: change  "'s CV" hardcoded word in the html/md outputs and make it changeable to support different languages.

* test: add tests for RTL support

* test: add tests for RTL support

* Improve implementation

* Update testdata

* Fix merge issues

* Simplify

* Add test and use type hints with type adapters

* Fix `just check` errors

---------

Co-authored-by: Khalid <khalid.pro.968@gmail.com>
Co-authored-by: Sina Atalay <79940989+sinaatalay@users.noreply.github.com>
2026-02-17 14:19:11 +03:00

876 B

Add a New Theme

  1. Create a YAML file in src/rendercv/schema/models/design/other_themes/

    touch src/rendercv/schema/models/design/other_themes/mytheme.yaml
    
  2. Add the schema reference and override Classic theme defaults

    # yaml-language-server: $schema=../../../../../../schema.json
    design:
      theme: mytheme
      # Override any defaults from classic_theme.py here
      colors:
        name: rgb(0,0,0)
      typography:
        font_family: New Computer Modern
      # ... add any other overrides
    
  3. Update the JSON Schema

    just update-schema
    

    This regenerates schema.json so that editors can provide autocomplete and validation for the new theme. See JSON Schema for details.

  4. Done. Use it:

    rendercv new "John Doe" --theme mytheme