Flags and arms of cantons of Switzerland there is overlap; Unterwalden and Solothurn share the same colours, as do Basel and Appenzell, and with the accession of the modern cantons, Valais and Basel-City, and St. Gallen and Thurgau. Of the 26 cantons since 1999 (22 cantons in 1848, accession of Jura in 1979, three half-cantons designated "canton" in 1999): Distinctively, Swiss cantons use square flags. Historically, the number of cantons was: Nidwalden and Obwalden form traditional subdivisions of Unterwalden. Basel-Stadt and Basel-Landschaft, as well as Appenzell Inner- and Ausserrhoden, are half cantons, resulting from the division of Basel and Appenzell, respectively. The Swiss Federal Constitution of 1999
Cantons of Switzerland democracy in the form of the "Landsgemeinde", the urban states operated via representation in city councils, de facto oligarchic systems dominated by families of the patriciate. The old system was abandoned with the formation of the Helvetic Republic following the French invasion of Switzerland in 1798. The cantons of the Helvetic Republic had merely the status of an administrative subdivision with no sovereignty. The Helvetic Republic collapsed within five years, and cantonal sovereignty was restored with the Act of Mediation of 1803. The status of Switzerland as a federation of states was restored, at the time including 19 cantons (the