spiegel-keyman/web/docs/engine/reference/util/addStyleSheet.md
Marc Durdin 6c145cb775 refactor(web): move web engine help to app repo
Note: build.sh updated to make sure that test:help build action:target
doesn't also call test.sh by adding `:_all` meta-target.

Note: CI will need a new help-keyman-com.sh build step to deploy web
engine help.

Fixes: #12347
2024-10-31 11:00:06 +07:00

32 lines
622 B
Markdown

---
title: addStyleSheet
---
## Summary
Generates a style sheet element for use in adding or overriding default On-Screen Keyboard styles.
## Syntax
```c
keyman.util.addStyleSheet(sheet)
```
### Parameters
`sheet`
: Type: `string`
: A string representing a CSS style sheet.
### Return Value
`Object`
: A page element representing the newly-embedded style sheet.
## Description
See our list of [standard OSK style names](../osk/classes) as a reference if implementing your own stylesheets.
See also:
- [`keyman.util.linkStyleSheet()`](linkStyleSheet)
- [`keyman.util.removeStyleSheet()`](removeStyleSheet)