spiegel-keyman/web/docs/engine/reference/util/addStyleSheet.md
Marc Durdin 1f82507730 docs(web): deprecate unused and obsolete API endpoints and docs cleanup
Deprecate the following obsolete functions and properties:
* `keyman.helpURL`
* `keyman.util.rgba`
* `keyman.util.toFloat`
* `keyman.util.toNumber`
* `keyman.util.toNzString`

Use correct language for code blocks in Keyman Engine for Web
documentation.

Test-bot: skip
2026-08-12 16:07:22 +02:00

32 lines
623 B
Markdown

---
title: addStyleSheet
---
## Summary
Generates a style sheet element for use in adding or overriding default On-Screen Keyboard styles.
## Syntax
```js
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)