Django Bootstrap Icons

screenshot of Django Bootstrap Icons
django
bootstrap

A quick way to add Bootstrap Icons with Django template tags.

Overview:

django-bootstrap-icons is a quick and easy way to add Bootstrap Icons to Django templates. It provides template tags that allow users to easily embed and style Bootstrap SVG icons in their templates. The package can be installed from PyPI using pip, and it integrates well with both Bootstrap Icons and Material Design Icons. Users can also customize icons and specify the source from which the icons are loaded.

Features:

  • Easy Integration: Users can simply add the django_bootstrap_icons Django app to their settings file and load the tag library in their templates to start using Bootstrap Icons.
  • Icon Sizing: Icons can be easily sized by setting the size parameter.
  • Icon Styling: Icons can be styled by specifying the color parameter and adding extra CSS classes.
  • Vertical Alignment: Users have the option to align icons vertically using CSS classes provided by django-bootstrap-icons.
  • Custom Icons: Custom icons can be used by storing them in a static directory and setting the BS_ICONS_CUSTOM_PATH setting. Users can also download Bootstrap Icons from Bootstrap, store them in their static files, and use them with the custom_icon template tag.
  • Material Design Icons Compatibility: django-bootstrap-icons works well with Material Design Icons and provides a template tag for them. It adjusts the rendering of Material Design Icons to ensure they have the same size as Bootstrap Icons.
  • Configuration: Users can specify the source from which the icons are loaded by setting the BS_ICONS_BASE_URL setting.

Summary:

django-bootstrap-icons is a convenient package for integrating Bootstrap Icons into Django templates. It provides a simple and intuitive way to embed and style Bootstrap SVG icons. With features such as icon sizing, styling, and vertical alignment, as well as compatibility with custom icons and Material Design Icons, this package offers flexibility and customization options. Additionally, users can configure the source of the icons to be loaded. Overall, django-bootstrap-icons is a valuable tool for enhancing the visual appeal of Django templates with Bootstrap Icons.

django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.

bootstrap
Bootstrap

Bootstrap is the most popular CSS Framework for developing responsive and mobile-first websites.