Global Stylesheets
While Ionic Framework component styles are self-contained, there are several global stylesheets that should be included in order to use all of Ionic's features. Some of the stylesheets are required in order for an Ionic Framework app to look and behave properly, and others include optional utilities to quickly style your app.
#
Available#
RequiredThe following CSS file must be included in order for Ionic Framework to work properly.
#
core.cssThis file is the only stylesheet that is required in order for Ionic components to work properly. It includes app specific styles, and allows the color
property to work across components. If this file is not included the colors will not show up and some elements may not appear properly.
#
RecommendedThe following CSS files are recommended to be included in an Ionic Framework app. If they are not included, some elements may have undesired styles. If Ionic Framework components are being used outside of an app, these files may not be necessary.
#
structure.cssApplies styles to <html>
and defaults box-sizing
to border-box
. It ensures scrolling behaves like native in mobile devices.
#
typography.cssTypography changes the font-family of the entire document and modifies the font styles for heading elements. It also applies positioning styles to some native text elements.
#
normalize.cssMakes browsers render all elements more consistently and in line with modern standards. It is based on Normalize.css.
#
OptionalThe following set of CSS files are optional and can safely be commented out or removed if the application is not using any of the features.
#
padding.cssAdds utility classes to modify the padding or margin on any element, see CSS Utilities for usage information.
#
float-elements.cssAdds utility classes to float an element based on the breakpoint and side, see CSS Utilities for usage information.
#
text-alignment.cssAdds utility classes to align the text of an element or adjust the white space based on the breakpoint, see CSS Utilities for usage information.
#
text-transformation.cssAdds utility classes to transform the text of an element to uppercase
, lowercase
or capitalize
based on the breakpoint, see CSS Utilities for usage information.
#
flex-utils.cssAdds utility classes to align flex containers and items, see CSS Utilities for usage information.
#
display.cssAdds utility classes to hide any element based on the breakpoint, see CSS Utilities for usage information.
#
UsageRefer to Ionic Packages for how to include the global stylesheets based on the framework and CSS Utilities for how to use the optional utilities.