Skip to main content

Styles

Ask AIView as Markdown
Copy a prompt to ask an AI assistant about this page.

An overview of the Siemens Industrial Experience styles, design language, tokens, theming and customization guidance.

Styles - Code

The default stylesheet contains the Community theme, component foundation and common utilities:

import '@siemens/ix/css/default.css';

Foundation applies the SiemensSans Pro font stack to [data-ix-theme] and sets body typography, text color, background and document-wide scrollbar styles. The default entry also styles button groups, links, table classes and typography. Add further global styles deliberately so their selectors and browser defaults do not affect more of your application than intended.

Entry points​

CSSSassIncludesGlobal effect
@siemens/ix/css/default.css@siemens/ix/scss/defaultFoundation, Community light and dark themes, and button group, link, table and typography utilitiesProvides the recommended setup, including selected native element and utility styles
@siemens/ix/css/foundation.css@siemens/ix/scss/foundationVariables and foundation behavior required by componentsSets the theme font stack and applies body typography, color, background and document scrollbars
@siemens/ix/css/reset.css@siemens/ix/scss/resetNormalized browser defaults and box-sizingStyles native HTML elements globally
@siemens/ix/css/base.css@siemens/ix/scss/baseSystem primary text color and body margin resetSets color on [data-ix-theme] and resets the body margin
@siemens/ix/css/scrollbar.css@siemens/ix/scss/scrollbarThemed scrollbar colors and dimensionsStyles scrollbars only on an element with data-ix-scrollbars and its descendants
@siemens/ix/css/utilities.css@siemens/ix/scss/utilitiesDefault utilities plus shadows and input groupsAdds the complete utility layer
@siemens/ix/css/globals.css@siemens/ix/scss/globalsReset, base, scrollbar and complete utilitiesAdds all current global styles, but no legacy native form styling
@siemens/ix/css/legacy.css@siemens/ix/scss/legacyPrevious reset, base, utilities and native form stylesRestores the remaining global behavior from earlier releases without adding a theme or foundation

Import order​

We recommend this order:

  1. Foundation and theme
  2. Optional global styles
  3. Application styles and overrides

For the standard setup with all current global styles:

import '@siemens/ix/css/default.css';
import '@siemens/ix/css/globals.css';
import './app.css';

Foundation styles document scrollbars automatically. Add disable-scrollbar to body to disable that behavior. Import the scrollbar stylesheet (scrollbar.css) and add data-ix-scrollbars to an element to theme scrollbars on that element and its descendants:

import '@siemens/ix/css/scrollbar.css';
<html data-ix-theme="community" data-ix-color-schema="dark">
<body class="disable-scrollbar">
<main data-ix-scrollbars></main>
</body>
</html>

Import additional layers after the default stylesheet when needed. The complete utility entry extends the selected utilities already in default.css with shadow and input-group styles:

import '@siemens/ix/css/default.css';
import '@siemens/ix/css/scrollbar.css';
import '@siemens/ix/css/utilities.css';

Migrating applications​

The previous monolithic stylesheet applied global native element and form styles. To preserve that behavior during migration, combine the new default and legacy stylesheets:

import '@siemens/ix/css/default.css';
import '@siemens/ix/css/legacy.css';

legacy.css does not include a theme or the component foundation. It keeps native form classes such as .ix-form-control and .ix-form-label; foundation provides the body and scrollbar defaults.

Use the canonical @siemens/ix/css/* and @siemens/ix/scss/* entry points. Deep internal Sass partials are no longer exported.