Skip to content

Commit ba45e18

Browse files
committed
Update readme docs for CSS
1 parent 63758a8 commit ba45e18

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,21 @@ end up using it, please let me know!
4343
the more complicated parts of a Yomitan dictionary. You can create them and
4444
add them to a dictionary using the `setIndex()`, `addTerm()`, and `addKanji()`
4545
methods of the `Dictionary` class.
46-
- You might want to set `"js/ts.implicitProjectConfig.checkJs": true` in your
47-
VSCode settings to get type checking for JavaScript files and not have to deal
48-
with your dictionaries failing to validate against the Yomitan schemas.
46+
- If using JS, you might want to set
47+
`"js/ts.implicitProjectConfig.checkJs": true` in your VSCode settings to get
48+
type checking for JavaScript files and not have to deal with your dictionaries
49+
failing to validate against the Yomitan schemas. However, I recommend using
50+
TypeScript.
4951
- In particular, it might be a good idea to check out the
5052
[Yomitan Schemas](https://github.com/MarvNC/yomichan-dictionaries/blob/master/how-to-make-yomichan-dictionaries.md#read-the-schemas)
5153
as well as the type definitions within the package so that you know what's
5254
available for use when creating detailed definitions.
5355
- You can then type your objects in JS by using JSDoc comments to provide editor
5456
intellisense and type checking. You can see this in action in
5557
[example.js](./examples/example.js).
58+
- You can simply add a `styles.css` file using the `addFile()` method to add
59+
custom CSS to your dictionary.
60+
[Read more in the official docs](https://github.com/themoeway/yomitan/blob/master/docs/making-yomitan-dictionaries.md#adding-custom-css).
5661

5762
### Dictionary Class
5863

0 commit comments

Comments
 (0)