The Europa Component Library (ECL) is a library of components applicable to all European Commission websites (hosted under ec.europa.eu domain). The library contains all available components which you can use to build your website.
The Digital Transformation team (DTT) - a cross European Commission team led by DGs COMM, DIGIT, and DTT - is the owner of this library.
All library elements are accompanied with
- documentation: what the component is intended for and recommendations regarding its usage
- demo: visual representation of the component
- code: technologically agnostic HTML/CSS code for implementation
Read the technical documentation on GitHub.
The ECL is bundled in various presets in order to accomodate the different needs of everyone. Once you know which preset you want to use, you can:
-
download the latest release of the preset of your choice
-
install the preset with npm or yarn, e.g.
npm install @ecl/ec-preset-website
oryarn add @ecl/ec-preset-website
-
use the CDN, https://cdn{1,2,3 or 4}.fpfis.tech.ec.europa.eu/ecl/{tag}/{preset}/{path/to/the/asset}. Here's an example:
<link rel="stylesheet" href="https://cdn1.fpfis.tech.ec.europa.eu/ecl/v2.34.0/ec-preset-website/styles/ecl-ec-preset-website.css" integrity="sha256-tjmEkHSrEB8gHpKfumCqir7951I4srg0mavhJoWpl98= sha384-ipVkfIajx7276JXorBNZBwzIVIwyzpRvbavnubB0wT7HDcyBT5ZfejGCxyMjVo/T sha512-FyEJeZ+MRfJWxWc60AqVVZGLyHnIaMblZkxfzLyXxKZoxlh1YM1tnS1JPBlYdUolwkEyqP1RLukB6EsauFnWyA==" crossorigin="anonymous" media="screen" />
<link rel="stylesheet" href="https://cdn1.fpfis.tech.ec.europa.eu/ecl/v2.34.0/ec-preset-website/styles/ecl-ec-preset-website-print.css" integrity="sha256-X7XJeKiBj/2wC6QAICQ31n08ukasxHFLzpUOiN45oXE= sha384-WumRugT1zddn9RT2pGe1GpY50Rf+C/JWmavSyISiMmyzDgvAG4VnX1n+bNNJnEMP sha512-6+NIHK1tmv5LrzTjwtG9ylNZh+D+/HMOlYT/NowHRGZ2mDe4hRiec3Fr2bTU90WvSKrHNIvTJX48/+wlh3JF1Q==" crossorigin="anonymous" media="print" />
<script src="https://cdn1.fpfis.tech.ec.europa.eu/ecl/v2.34.0/ec-preset-website/styles/ecl-ec-preset-website.js" integrity="sha256-DoAZQE8MobqcA4+OZPrCYdKXyOdEQJhG9ONcx+68qGQ= sha384-NTy5Od+E6LYSu9/DK1W/KRRL60d7JewErQngibNKridW94jcxmIJd7XEoWTHWV7D sha512-ANNvPQ3epX39yIc93K4xmIVop7WjNnBHGDywbaLWCNhc1dONyzAXcv+M01szPUi3oQLbkoVCrreJ26T7cjYZGg==" crossorigin="anonymous" ></script>
Please contact COMM Europa Management for support on using this resource for a European Commission website.